Package au.com.motodetail.base.entity

Examples of au.com.motodetail.base.entity.BasicRoleTypeEntity


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

        //retrieve basicEntity from db to merge
        BasicRoleTypeEntity basicRoleTypeTemp = basicRoleTypeDao.retrieve(basicRoleType.getId());

        //modify here
        basicRoleTypeTemp.setRoles(basicRoleType.getRoles());
        basicRoleTypeTemp.setType(basicRoleType.getType());

        //commit changes
        basicRoleTypeDao.update(basicRoleTypeTemp);

        //commit transaction
View Full Code Here


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

TOP

Related Classes of au.com.motodetail.base.entity.BasicRoleTypeEntity

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.