Content extends AbstractHibernateObject implements SharedEntity, Cloneable, ContentInfo { public int getEntityVersion() { HashCodeBuilder builder = new HashCodeBuilder(37, 7) .append(this.id) .append(this.type) .append(this.label) .append(this.name) .append(this.vendor) .append(this.contentUrl) .append(this.requiredTags) .append(this.releaseVer) .append(this.gpgUrl) .append(this.metadataExpire) .append(this.arches); int accumulator = 0; if (!this.modifiedProductIds.isEmpty()) { for (String pid : this.modifiedProductIds) { accumulator += (pid != null ? pid.hashCode() : 0); } builder.append(accumulator); } return builder.toHashCode(); } Content();  Content(String id);  Content(String id, String name, String type, String label, String vendor); protected  Content(Content source); Content merge(Content source); @Override Content clone(); ContentData toDTO(); String getUuid(); void setUuid(String uuid); @Override String getId(); void setId(String id); @Override String getType(); void setType(String type); @Override String getLabel(); void setLabel(String label); @Override String getName(); void setName(String name); @Override String getVendor(); void setVendor(String vendor); @Override String getContentUrl(); void setContentUrl(String contentUrl); @Override String getRequiredTags(); void setRequiredTags(String requiredTags); @Override String getReleaseVersion(); void setReleaseVersion(String releaseVer); @Override String getGpgUrl(); void setGpgUrl(String gpgUrl); @Override Long getMetadataExpiration(); void setMetadataExpiration(Long metadataExpire); Collection<String> getModifiedProductIds(); @Override Collection<String> getRequiredProductIds(); boolean addModifiedProductId(String productId); boolean removeModifiedProductId(String productId); Content setModifiedProductIds(Collection<String> requiredProductIds); void setArches(String arches); @Override String getArches(); @XmlTransient @JsonIgnore Content setLocked(boolean locked); @XmlTransient boolean isLocked(); @Override boolean equals(Object other); @Override int hashCode(); int getEntityVersion(); @Override String toString(); @PrePersist @PreUpdate void updateEntityVersion(); static final String DB_TABLE; }
@Test public void testBaseEntityVersion() { Content lhs = new Content(); Content rhs = new Content(); assertEquals(lhs.getEntityVersion(), rhs.getEntityVersion()); }