/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pIdEntityOwner entity owner ID * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwnerById(final Map<String, Object> pAddParam, final Object pIdEntityOwner) throws Exception { T entity = getSrvOrm().createEntityWithOwner(getEntityClass(), this.ownerClass, pIdEntityOwner); entity.setIsNew(true); return entity; }
/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pIdEntityOwner entity owner ID * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwnerById(final Map<String, Object> pAddParam, final Object pIdEntityOwner) throws Exception { T entity = getSrvOrm().createEntityWithOwner(getEntityClass(), this.ownerClass, pIdEntityOwner); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; }
/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pEntityOwner owner * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwner(final Map<String, Object> pAddParam, final O pEntityOwner) throws Exception { T entity = getSrvOrm().createEntityWithOwner(getEntityClass(), this.ownerClass, pEntityOwner.getItsId()); entity.setIsNew(true); return entity; }
/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pIdEntityOwner entity owner ID * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwnerById(final Map<String, Object> pAddParam, final Object pIdEntityOwner) throws Exception { T entity = getSrvOrm().createEntityWithOwner(getEntityClass(), this.ownerClass, pIdEntityOwner); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; }
/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pIdEntityOwner entity owner ID * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwnerById( final Map<String, Object> pAddParam, final Object pIdEntityOwner) throws Exception { T entity = getSrvOrm().createEntityWithOwner(getEntityClass(), ReplicationAccMethod.class, pIdEntityOwner); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; }
/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pEntityOwner owner * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwner(final Map<String, Object> pAddParam, final O pEntityOwner) throws Exception { T entity = getSrvOrm().createEntityWithOwner(getEntityClass(), this.ownerClass, pEntityOwner.getItsId()); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; }
/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pEntityOwner owner * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwner(final Map<String, Object> pAddParam, final O pEntityOwner) throws Exception { T entity = getSrvOrm().createEntityWithOwner(getEntityClass(), this.ownerClass, pEntityOwner.getItsId()); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; }
/** * <p>Create entity with its owner e.g. invoice line * for invoice.</p> * @param pAddParam additional param * @param pEntityOwner owner * @return entity instance * @throws Exception - an exception **/ @Override public final T createEntityWithOwner( final Map<String, Object> pAddParam, final ReplicationAccMethod pEntityOwner) throws Exception { T entity = getSrvOrm() .createEntityWithOwner(getEntityClass(), ReplicationAccMethod.class, pEntityOwner.getItsId()); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; }
countUpdatedSitl++; } else { sit = getSrvOrm().createEntityWithOwner( SalesInvoiceTaxLine.class, SalesInvoice.class, pOwnerId);
countUpdatedSitl++; } else { cit = getSrvOrm().createEntityWithOwner( PurchaseReturnTaxLine.class, PurchaseReturn.class, pOwnerId);
countUpdatedSitl++; } else { sit = getSrvOrm().createEntityWithOwner( SalesReturnTaxLine.class, SalesReturn.class, pOwnerId);
countUpdatedSitl++; } else { sit = getSrvOrm().createEntityWithOwner( PurchaseInvoiceTaxLine.class, PurchaseInvoice.class, pOwnerId);
if (employeeYearWage == null) { employeeYearWage = getSrvOrm() .createEntityWithOwner(EmployeeYearWage.class, Employee.class, pEntity.getEmployee().getItsId()); employeeYearWage.setIsNew(true);