]
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: