[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-879?page=co...
]
Simon Oualid commented on HHH-879:
----------------------------------
Simplest workaround I found :
{code}
Restrictions.sqlRestriction( " exists ( select null from BaseEntity be2, ChildEntity
ce1, ChildEntity ce2 " +
"where be2.id = baseentity1_.id and ce1.id_parent = be2.id and ce2.id_parent =
be2.id " +
"and ce1.id = "+ firstEntityId +" and ce2.id = "+ secondEntityId
+") " );
baseEntityCriteria.add( r );
{code}
Regards.
Enable joining the same association twice with Criteria
-------------------------------------------------------
Key: HHH-879
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-879
Project: Hibernate Core
Issue Type: Improvement
Components: core
Reporter: Vladimir Bayanov
Make double joining the same association with Criteria.createCriteria possible. See:
http://forum.hibernate.org/viewtopic.php?t=931249
--
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