BaseUtil.writeLog("PoiEntityServiceImpl::update ID: " + poiEntity.getId());
//start transaction
JPAUtil.createTransactionalEntityManager();
//retrieve person from db to merge
PoiEntity ptemp = poiEntityDao.retrieve(poiEntity.getId());
//modify here
ptemp.setEntityType(poiEntity.getEntityType());
ptemp.setLatitude(poiEntity.getLatitude());
ptemp.setLongitude(poiEntity.getLongitude());
ptemp.setName(poiEntity.getName());
ptemp.setRoles(poiEntity.getRoles());
//commit changes
poiEntityDao.update(ptemp);
//commit transaction