[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-5630) Query cache key generated for HQL with a "joined" association is the same as when the association is "fetched", even though results are different
Gail Badner (JIRA)
noreply at atlassian.com
Thu Oct 7 21:53:57 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner resolved HHH-5630.
------------------------------
Resolution: Fixed
Fixed by HHH-5163.
> Query cache key generated for HQL with a "joined" association is the same as when the association is "fetched", even though results are different
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HHH-5630
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5630
> Project: Hibernate Core
> Issue Type: Bug
> Components: query-hql
> Affects Versions: 3.6.0.CR2
> Reporter: Gail Badner
> Assignee: Gail Badner
> Fix For: 3.6.x
>
>
> The same SQL is generated for the following HQL statements:
> 1) select a from Animal a left join fetch a.offspring
> 2) select a, o from Animal a left join a.offspring o
> The QueryKey objects generated for these statements are equivalent, even though the cached data is different.
> Results from 1) will be a list of Animal objects.
> Results from 2) will be a list of Object[2]
> This can cause type mismatches when retrieving results frome the cache.
--
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