/** * <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 AdditionCostLine createEntityWithOwnerById( final Map<String, Object> pAddParam, final Object pIdEntityItsOwner) throws Exception { AdditionCostLine entity = new AdditionCostLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); ManufacturingProcess itsOwner = new ManufacturingProcess(); itsOwner.setItsId(Long.valueOf(pIdEntityItsOwner.toString())); entity.setItsOwner(itsOwner); addAccSettingsIntoAttrs(pAddParam); addTypeCodeIntoAttrs(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 AdditionCostLine createEntityWithOwner( final Map<String, Object> pAddParam, final ManufacturingProcess pEntityItsOwner) throws Exception { AdditionCostLine entity = new AdditionCostLine(); entity.setIsNew(true); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setItsOwner(pEntityItsOwner); addAccSettingsIntoAttrs(pAddParam); addTypeCodeIntoAttrs(pAddParam); return entity; }
/** * <p>Create entity.</p> * @param pAddParam additional param * @return entity instance * @throws Exception - an exception **/ @Override public final AdditionCostLine createEntity( final Map<String, Object> pAddParam) throws Exception { AdditionCostLine entity = new AdditionCostLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); ManufacturingProcess itsOwner = new ManufacturingProcess(); entity.setItsOwner(itsOwner); addTypeCodeIntoAttrs(pAddParam); addAccSettingsIntoAttrs(pAddParam); return entity; }
AdditionCostLine acl = new AdditionCostLine(); acl.setItsOwner(reversed); List<AdditionCostLine> reversedAcl = getSrvOrm(). for (AdditionCostLine reversedLine : reversedAcl) { if (reversedLine.getReversedId() == null) { AdditionCostLine reversingLine = new AdditionCostLine(); reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); reversingLine.setReversedId(reversedLine.getItsId());