@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; }
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(); }