use of com.autentia.tnt.dao.hibernate.AccountEntryDAO in project TNTConcept by autentia.
the class PeriodicalAccountEntryManager method copy.
public PeriodicalAccountEntry copy(int id) {
PeriodicalAccountEntry periodicalAccountEntry = new PeriodicalAccountEntry();
AccountEntryDAO accountEntryDAO = new AccountEntryDAO();
AccountEntry copyAccountEntry = accountEntryDAO.loadById(id);
/*
periodicalAccountEntry.setConcept(copyAccountEntry.getConcept());
periodicalAccountEntry.setAccount(copyAccountEntry.getAccount());
periodicalAccountEntry.setDate(copyAccountEntry.getDate());
periodicalAccountEntry.setObservations(copyAccountEntry.getObservations());
periodicalAccountEntry.setType(copyAccountEntry.getType());
periodicalAccountEntry.setAmount(copyAccountEntry.getAmount());
*/
BeanUtils.copyTransferObject(copyAccountEntry, periodicalAccountEntry);
return periodicalAccountEntry;
}
Aggregations