Package au.com.motodetail.base.entity

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


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

        //retrieve basicEntity from db to merge
        BasicRoleEntity basicRoleTemp = basicRoleDao.retrieve(basicRole.getId());

        //modify here
        basicRoleTemp.setEntities(basicRole.getEntities());
        basicRoleTemp.setIntervals(basicRole.getIntervals());
        basicRoleTemp.setRoleType(basicRole.getRoleType());

        //commit changes
        basicRoleDao.update(basicRoleTemp);

        //commit transaction
View Full Code Here


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

TOP

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

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.