Examples of DobRoleEntity


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

        //1.1 set return flag
        returnNull = true;

        //1.2 create DobRole object
        BaseUtil.writeLog("PoiManager::debug 1.2 start");
        DobRole dobRole = new DobRoleEntity();
        dobRole.setDate(Calendar.getInstance());
        dobRole.setIp("not set yet");


        //1.3 obtain role types
        BaseUtil.writeLog("PoiManager::debug 1.3 start");
        query = em.createQuery("select o from BasicRoleTypeEntity o");
        List<BasicRoleType> basicRoleType = query.getResultList();

        //1.4 parse and look for DOB_ENTITY
        BaseUtil.writeLog("PoiManager::debug 1.4 start");
        for(BasicRoleType brt:basicRoleType) {
            if(brt.getType() == RoleType.DOB_ENTITY) {
                dobRole.setRoleType(brt);
                returnNull = false;
                break;
            }
        }
View Full Code Here

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

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

        //retrieve person from db to merge
        DobRoleEntity temp = dobRoleDao.retrieve(role.getId());

        //modify here
        temp.setDate(role.getDate());
        temp.setEntities(role.getEntities());
        temp.setIntervals(role.getIntervals());
        temp.setIp(role.getIp());
        temp.setRoleType(role.getRoleType());

        //commit changes
        dobRoleDao.update(temp);

        //commit transaction
View Full Code Here

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

    @Override
    public DobRoleEntity getById(Long id)
    {
        BaseUtil.writeLog("DobRoleServiceImpl::getById ID: " + id);
        JPAUtil.createEntityManager();
        DobRoleEntity result = dobRoleDao.retrieve(id);
        JPAUtil.closeEntityManager();
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.