//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;
}
}