Exemplo n.º 1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o);
    if (getClass() != objClass) {
      return false;
    }

    final Version that = (Version) o;
    if (this.getID() != that.getID()) {
      return false;
    }

    return true;
  }
Exemplo n.º 2
0
 public boolean equals(Object obj) {
   if (obj instanceof Version == false) return false;
   if (this == obj) return true;
   Version other = (Version) obj;
   return new EqualsBuilder().append(getId(), other.getId()).isEquals();
 }