Пример #1
0
 public Tier update(Tier tier) throws InvalidEntityException {
   log.info("Update tier " + tier.getName());
   try {
     Tier newTier = tierDao.update(tier);
     return tierDao.loadComplete(newTier);
   } catch (Exception e) {
     log.error(
         "It is not possible to update the tier " + tier.getName() + " : " + e.getMessage(), e);
     throw new InvalidEntityException(
         "It is not possible to update the tier " + tier.getName() + " : " + e.getMessage());
   }
 }
Пример #2
0
 @Override
 public Tier loadComplete(Tier tier) throws EntityNotFoundException {
   return tierDao.loadComplete(tier);
 }