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