[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2510) override equals() and fix hashCode() in AliasToBeanResultTransformer

Gail Badner (JIRA) noreply at atlassian.com
Thu Jul 29 14:58:35 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list