[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1604) IdentityKey.equals(Object) using == instead of myBean.equals(Object)
Steve Ebersole (JIRA)
noreply at atlassian.com
Thu Jul 26 22:03:52 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole closed HHH-1604.
-------------------------------
Resolution: Rejected
> IdentityKey.equals(Object) using == instead of myBean.equals(Object)
> --------------------------------------------------------------------
>
> Key: HHH-1604
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1604
> Project: Hibernate3
> Issue Type: Bug
> Components: core
> Environment: Hibernate 3.0.1
> Reporter: Joel SCHAAL
>
> When trying to remove an instance from the cache with session.evict, I am confused to see that an instance is not effectively removed.
> After getting in the code I see that IdentityKey uses == and not my overrided equals method in my bean object.
> Shouldn't IdentityKey use equals ? It would make more sense, wouldn't it ? Because in the specification of java.util.Map, it is equals that is mentionned, not ==.
> Thanks in advance for letting me know if I am wrong and/or if this will be changed.
> Joel.
> Class concerned : org.hibernate.util.IdentityMap
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list