[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2049?page=c...
]
Mattias Jiderhamn commented on HHH-2049:
----------------------------------------
To clarify even futher: The problem is that the entity returned by the query differs (on
the child collection) from the entity return by session.get().
I have to claim this inconsistency is a bug.
Or should I have to query the entities, put the primary keys of the returned entities in a
collection, clear the session, and then look up the entities by the primary keys using
session.get()???
LEFT OUTER JOIN subcriteria filters children
--------------------------------------------
Key: HHH-2049
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2049
Project: Hibernate3
Type: Bug
Components: query-criteria
Versions: 3.1.3, 3.2.0.cr4
Environment: Hibernate 3.1.3/3.2.0rc4, hsqldb 1.8
Reporter: Mattias Jiderhamn
Attachments: SubCriteriaTestCase.zip
When using the Criteria API with LEFT OUTER JOIN to add criterias to the children, i.e.
criteria.createCriteria("children", JoinFragment.LEFT_OUTER_JOIN)
the child collections will only contain those children matching the criteria. (Even when
*not* using any Filters).
The attached testcase (also found here:
http://forum.hibernate.org/viewtopic.php?p=2320786) will explain it in more detail.
--
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