@Override public PhoneType merge(UUID id, PhoneType obj) { PhoneType phoneType = this.findById(id); if (phoneType == null) { throw new ObjectNotFoundException(); } phoneType.setTitle(obj.getTitle().trim()); return this.update(phoneType); }
@Override public PhoneType save(PhoneType entity) { entity.setTitle(entity.getTitle().trim()); return phoneTypeDao.save(entity); }