Search in sources :

Example 1 with AccountEntryDAO

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;
}
Also used : PeriodicalAccountEntry(com.autentia.tnt.businessobject.PeriodicalAccountEntry) PeriodicalAccountEntry(com.autentia.tnt.businessobject.PeriodicalAccountEntry) AccountEntry(com.autentia.tnt.businessobject.AccountEntry) AccountEntryDAO(com.autentia.tnt.dao.hibernate.AccountEntryDAO) PeriodicalAccountEntryDAO(com.autentia.tnt.dao.hibernate.PeriodicalAccountEntryDAO)

Aggregations

AccountEntry (com.autentia.tnt.businessobject.AccountEntry)1 PeriodicalAccountEntry (com.autentia.tnt.businessobject.PeriodicalAccountEntry)1 AccountEntryDAO (com.autentia.tnt.dao.hibernate.AccountEntryDAO)1 PeriodicalAccountEntryDAO (com.autentia.tnt.dao.hibernate.PeriodicalAccountEntryDAO)1