HQL left join fetch of an element collection following a left join fetch of a one-to-many relationship causes org.hibernate.QueryException (Similar but not the same as HHH-5465 Issue)

Description

Similar but not the same as 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)

Environment

JDK1.7.0_21, Hibernate 4.2.5.Final, Oracle 11i

Assignee

Unassigned

Reporter

Reinaldo Cerioli

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure