[
http://jira.jboss.com/jira/browse/JBSEAM-3135?page=all ]
Christian Bauer closed JBSEAM-3135.
-----------------------------------
Resolution: Rejected
You do NOT want to override equals/hashcode on a persistent entity. This is only ever done
in very exceptional cases. You want identity and equality guaranteed by a persistence
context. I wrote two books about it so I don't feel like repeating the details here
again.
warning for non-overridden hashcode/equals when using
s:convertEntity
---------------------------------------------------------------------
Key: JBSEAM-3135
URL:
http://jira.jboss.com/jira/browse/JBSEAM-3135
Project: Seam
Issue Type: Feature Request
Components: JSF Controls
Reporter: Nicklas Karlsson
Considering the largish number of posts on the forum where "convertEntity
doesn't work" or "the value doesn't stay selected", it could be
nice to have a log.warn statement if s:convertEntity encounteres an entity without
overridden equals/hashcode. If doable, that is.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira