/** * <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 SalesInvoiceLine createEntityWithOwnerById( final Map<String, Object> pAddParam, final Object pIdEntityItsOwner) throws Exception { SalesInvoiceLine entity = new SalesInvoiceLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); SalesInvoice itsOwner = new SalesInvoice(); 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 SalesInvoiceLine createEntityWithOwner( final Map<String, Object> pAddParam, final SalesInvoice pEntityItsOwner) throws Exception { SalesInvoiceLine entity = new SalesInvoiceLine(); entity.setIsNew(true); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setItsOwner(pEntityItsOwner); return entity; }
/** * <p>Create entity.</p> * @param pAddParam additional param * @return entity instance * @throws Exception - an exception **/ @Override public final SalesInvoiceLine createEntity( final Map<String, Object> pAddParam) throws Exception { SalesInvoiceLine entity = new SalesInvoiceLine(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setIsNew(true); SalesInvoice itsOwner = new SalesInvoice(); entity.setItsOwner(itsOwner); addAccSettingsIntoAttrs(pAddParam); return entity; }
if (reversedLine.getReversedId() == null) { SalesInvoiceLine reversingLine = new SalesInvoiceLine(); reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); reversingLine.setReversedId(reversedLine.getItsId()); reversingLine.setInvItem(reversedLine.getInvItem());
if (reversedLine.getReversedId() == null) { SalesInvoiceLine reversingLine = new SalesInvoiceLine(); reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); reversingLine.setReversedId(reversedLine.getItsId()); reversingLine.setInvItem(reversedLine.getInvItem());