Bug 454733

Summary: Persistent classes do not implement equals() and hashCode()
Product: [Retired] JBoss Customer Support Portal Reporter: Mike Amburn <mamburn>
Component: OtherAssignee: JBoss CSP Bug Watch List <csp-bugs-watch>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.3.8CC: fmerenda, jsanda, nlugert
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-28 12:55:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Amburn 2008-07-09 21:15:08 UTC
Most of our persistent classes (i.e., classes managed by Hibernate) do not implement equals() and hashCode(). These methods are almost always critical for entity types as well as as any class in which instances are stored in a Collection. Documentation on this can be found in the Hibernate reference manual at http://www.hibernate.org/hib_docs/reference/en/html/persistent-classes.html. This article on the Hibernate site, http://www.hibernate.org/109.html also provides some good information.

Frank, I have been working on some test utility code that will be useful for testing equals() and hashCode() as well as other Hibernate code; so, I do not mind assigning this to myself.

----
Data relocated from Jira (JBNET-2161)

Comment 1 John Sanda 2008-08-28 01:54:43 UTC
Please close this bug. It is a duplicate of bug 453183.

Comment 2 Frank Merenda 2008-08-28 12:55:00 UTC

*** This bug has been marked as a duplicate of bug 453183 ***