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