[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2510?page=c...
]
Gail Badner commented on HHH-2510:
----------------------------------
Two AliasToBeanResultTransformer objects should only be equal and have the same hash code
if they have the same getters/setters; otherwise, cache hits could return data intended
for different getters/setters.
override equals() and fix hashCode() in AliasToBeanResultTransformer
--------------------------------------------------------------------
Key: HHH-2510
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2510
Project: Hibernate Core
Issue Type: Improvement
Affects Versions: 3.2.2, 3.5.4, 3.6.0.Beta1
Reporter: Maxim Gordienko
Assignee: Gail Badner
Fix For: 3.6.0.Beta2
AliasToBeanResultTransformer whould override equals()/hashCode() to allow convenient
second level query caching.
Now the only way is to maintain single transformer instance per bean class to allow query
cache hit.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira