|
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
4.2.5
|
|
Assignee:
|
Unassigned
|
|
Attachments:
|
stackTrace.txt
|
|
Created:
|
10/Sep/13 11:11 AM
|
|
Environment:
|
JDK1.7.0_21, Hibernate 4.2.5.Final, Oracle 11i
|
|
Labels:
|
hibernate HQL
|
|
Priority:
|
Major
|
|
Reporter:
|
Reinaldo Cerioli
|
|
|
Similar but not the same as
HHH-5465
Issue. HQL queries of the form "from EntityA a left join fetch a.entityB b left join fetch b.items" fail with a QueryException when EntityA and EntityB have a one-to-many (@OneToMany) relationship and EntityB.items is also a list (one-to-many @OneToMany ) from EntityB and it's items For comparison, the following HQL queries are all admissible (which intends to demonstrate that no particular clause of the the above HQL is incorrect): "from EntityB b left join fetch b.items" "from EntityA a left join fetch a.entityB" "from EntityA a left join fetch a.entityB.items" "from EntityA a left join fetch a.entityCs c left join fetch c.items" (where EntityA and EntityC have a one-to-many (@OneToMany) relationship, and EntityC.items is an element collection)
|
|
|
|
|
|