public boolean equals(Object o) {
    if (this == o) return true;
    if ((o == null)) return false;
    if (!(o instanceof Vacation)) return false;

    Vacation that = (Vacation) o;

    return ((this.getId() == that.getId())
        || (this.getId() != null && that.getId() != null && this.getId().equals(that.getId())));
  }
示例#2
0
 @Transactional(rollbackFor = EntityNotFoundException.class, value = "hrdbTransactionManager")
 @Override
 public Vacation update(Vacation updated) throws EntityNotFoundException {
   LOGGER.debug("Updating vacation with information: {}", updated);
   this.wmGenericDao.update(updated);
   return this.wmGenericDao.findById((Integer) updated.getId());
 }