]
pao commented on HHH-2049:
--------------------------
Hi Douglas,
did you manage to find a work around? I'm facing the same issue. I need to more than
one condtion/criteria to filter the children trable.
"left join on id1 = id2 AND id1 = ? and id3=? and id4=? and so on.."
thanks,
pao
LEFT OUTER JOIN subcriteria filters children (Mattias Jiderhamn)
----------------------------------------------------------------
Key: HHH-2049
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2049
Project: Hibernate Core
Issue Type: Bug
Components: query-criteria
Affects Versions: 3.1.3, 3.2.0.cr4, 3.5.0.Beta-1, 3.5.2, 3.6.3
Environment: Hibernate 3.1.3/3.2.0rc4, hsqldb 1.8
Reporter: Mattias Jiderhamn
Assignee: Gail Badner
Fix For: 3.6.4, 4.0.0.Alpha3
Attachments: HHH-2049-subcriteria.patch, 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.
For more information on JIRA, see: