BaseUtil.writeLog("BasicMomentIntervalServiceImpl::update ID: " + basicMomentInterval.getId());
//start transaction
JPAUtil.createTransactionalEntityManager();
//retrieve basicEntity from db to merge
BasicMomentIntervalEntity basicMomentIntervalTemp = basicMomentIntervalDao.retrieve(basicMomentInterval.getId());
//modify here
basicMomentIntervalTemp.setEndDate(basicMomentInterval.getEndDate());
basicMomentIntervalTemp.setExpire(basicMomentInterval.getExpire());
basicMomentIntervalTemp.setRoles(basicMomentInterval.getRoles());
basicMomentIntervalTemp.setStartDate(basicMomentInterval.getStartDate());
//commit changes
basicMomentIntervalDao.update(basicMomentIntervalTemp);
//commit transaction