[
https://issues.apache.org/jira/browse/XMLBEANS-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623794#action_12623794
]
Craig commented on XMLBEANS-166:
--------------------------------
Yes, this has been closed for 3 years... but it really would be incredibly
useful if XMLBeans generated classes implemented hashcode. I'm not too
concerned about deep equals, though.
> Generated classes should implement equals and hashcode
> ------------------------------------------------------
>
> Key: XMLBEANS-166
> URL: https://issues.apache.org/jira/browse/XMLBEANS-166
> Project: XMLBeans
> Issue Type: Improvement
> Affects Versions: Version 1
> Environment: n/a
> Reporter: Peter Monks
> Assignee: Lawrence Jones
> Priority: Minor
>
> It would be ideal if the classes generated by XMLBeans from an XML schema
> implemented the equals and hashcode methods, preferably with "deep" semantics
> (ie. contained objects are recursively compared using equals rather than ==).
> At this point we're using the output of the xmlText method for equivalence
> comparisons, but that's a bit of a hack and depends on deterministic
> behaviour in the xmlText method (which is likely, but afaict not guaranteed
> by XMLBeans).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]