Brett Meyer commented on an issue
Hibernate ORM / Bug HHH-8551
Cannot use with-clause on the RHS of a join
Simple example:

{code}
public class SimpleEntityWithAssociation {
...
private Set associatedEntities = new HashSet();
...
{code}

{code}
public class SimpleAssociatedEntity {
...
private SimpleEntityWithAssociation owner;
...
{code}

"select a from SimpleEntityWithAssociation as e LEFT JOIN e.associatedEntities as a WITH e.name=?"
...