Bug 225796 - [hashcode/equals] option to use getters in generation of equals() requested
Summary: [hashcode/equals] option to use getters in generation of equals() requested
Status: RESOLVED DUPLICATE of bug 153738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-04 13:51 EDT by David Bernstein CLA
Modified: 2008-04-07 04:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***