Package au.com.motodetail.poi.entity

Examples of au.com.motodetail.poi.entity.PersonEntityImpl


        BaseUtil.writeLog("PersonEntityServiceImpl::update ID: " + personEntity.getId());
        //start transaction
        JPAUtil.createTransactionalEntityManager();

        //retrieve person from db to merge
        PersonEntityImpl ptemp = personEntityDao.retrieve(personEntity.getId());

        //modify here
        ptemp.setDob(personEntity.getDob());
        ptemp.setFirstName(personEntity.getFirstName());
        ptemp.setLastName(personEntity.getLastName());
        ptemp.setGender(personEntity.getGender());
        ptemp.setRoles(personEntity.getRoles());
        ptemp.setEntityType(personEntity.getEntityType());

        //commit changes
        personEntityDao.update(ptemp);

        //commit transaction
View Full Code Here


    @Override
    public PersonEntityImpl getById(Long id) {
        BaseUtil.writeLog("PersonEntityServiceImpl::getById ID: " + id);
        JPAUtil.createEntityManager();
        PersonEntityImpl result = personEntityDao.retrieve(id);
        JPAUtil.closeEntityManager();
        return result;
    }
View Full Code Here

TOP

Related Classes of au.com.motodetail.poi.entity.PersonEntityImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.