/** * <p>Create entity with its itsOwner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pIdEntityItsOwner entity itsOwner ID * @return entity instance * @throws Exception - an exception **/ @Override public final GoodsLossLine createEntityWithOwnerById( final Map<String, Object> pAddParam, final Object pIdEntityItsOwner) throws Exception { GoodsLossLine entity = new GoodsLossLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); GoodsLoss itsOwner = new GoodsLoss(); itsOwner.setItsId(Long.valueOf(pIdEntityItsOwner.toString())); entity.setItsOwner(itsOwner); addAccSettingsIntoAttrs(pAddParam); return entity; }
/** * <p>Create entity with its itsOwner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pEntityItsOwner itsOwner * @return entity instance * @throws Exception - an exception **/ @Override public final GoodsLossLine createEntityWithOwner( final Map<String, Object> pAddParam, final GoodsLoss pEntityItsOwner) throws Exception { GoodsLossLine entity = new GoodsLossLine(); entity.setIsNew(true); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setItsOwner(pEntityItsOwner); return entity; }
typeCodeMap.put(new GoodsLoss().constTypeCode(), GoodsLoss.class); typeCodeMap.put(new GoodsLossLine().constTypeCode(), GoodsLossLine.class); typeCodeMap.put(new MoveItems().constTypeCode(),
typeCodeMap.put(new GoodsLoss().constTypeCode(), GoodsLoss.class); typeCodeMap.put(new GoodsLossLine().constTypeCode(), GoodsLossLine.class); typeCodeMap.put(new MoveItems().constTypeCode(),
/** * <p>Create entity.</p> * @param pAddParam additional param * @return entity instance * @throws Exception - an exception **/ @Override public final GoodsLossLine createEntity( final Map<String, Object> pAddParam) throws Exception { GoodsLossLine entity = new GoodsLossLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); GoodsLoss itsOwner = new GoodsLoss(); entity.setItsOwner(itsOwner); addAccSettingsIntoAttrs(pAddParam); return entity; }
for (GoodsLossLine reversedLine : reversedLines) { if (reversedLine.getReversedId() == null) { GoodsLossLine reversingLine = new GoodsLossLine(); reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); reversingLine.setReversedId(reversedLine.getItsId());
&& pEntity.getReversedId() != null) { GoodsLossLine gll = new GoodsLossLine(); GoodsLoss reversed = new GoodsLoss(); reversed.setItsId(pEntity.getReversedId()); for (GoodsLossLine reversedLine : reversedLines) { if (reversedLine.getReversedId() == null) { GoodsLossLine reversingLine = new GoodsLossLine(); reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); reversingLine.setReversedId(reversedLine.getItsId());