Bug 225796

Summary: [hashcode/equals] option to use getters in generation of equals() requested
Product: [Eclipse Project] JDT Reporter: David Bernstein <dbb.posting>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, martinae
Version: 3.3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description David Bernstein CLA 2008-04-04 13:51:38 EDT
It would be very helpful if the automatic generation of Java equals() [Source => "Generate hashCode() and equals()"] would give the option of generating references to the other object's getters rather than always directly referencing the members in the other object themselves.  Sometime the other object may be an automatically generated proxy (for example, by Hibernate) where there may not be access to the members in the other object but one would like the option of being able to return true for equality.  There's reference to this in "Java Persistence with Hibernate" page 400 which is in section 9.2 "Object identity and equality".  I did do a search for this; apologies if there's an existing report/discussion/plan that I missed.
Comment 1 Martin Aeschlimann CLA 2008-04-07 04:49:48 EDT

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