BaseUtil.writeLog("BasicEntityTypeServiceImpl::update ID: " + basicEntityType.getId());
//start transaction
JPAUtil.createTransactionalEntityManager();
//retrieve basicEntity from db to merge
BasicTypeEntity basicEntityTypeTemp = basicEntityTypeDao.retrieve(basicEntityType.getId());
//modify here
basicEntityTypeTemp.setEntities(basicEntityType.getEntities());
basicEntityTypeTemp.setType(basicEntityType.getType());
//commit changes
basicEntityTypeDao.update(basicEntityTypeTemp);
//commit transaction