[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2510?page=c...
]
Gail Badner updated HHH-2510:
-----------------------------
Affects Version/s: 3.5.4
3.6.0.Beta1
Fix Version/s: 3.6.0.Beta2
Summary: override equals() and fix hashCode() in
AliasToBeanResultTransformer (was: override equals()/hashCode() in
AliasToBeanResultTransformer)
hashCode() is implemented but it relies on propertyAccessor.hashCode(). Implementations of
PropertyAccessor do not override hashCode() (or equals()), so cache lookups involving a
QueryKey with an AliasToBeanResultTransformer will result in a cache miss.
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