Issue Type: Bug Bug
Affects Versions: 4.1.9, 3.6.10
Assignee: Unassigned
Attachments: H812NFetchJoinBug.zip
Components: core
Created: 28/Dec/12 12:01 PM
Description:

I have a couple of entity classes: one parent entity class, and two child entity classes, associated via @OneToMany relationships. One child class is tied to the parent via a Map, the other via a List. Both collection properties are FetchType.LAZY. When I run a query containing two JOIN FETCHes, I end up with duplicate records in the List:

SELECT p FROM test_parent p JOIN FETCH p.children1 JOIN FETCH p.children2

Test case attached.

Environment: H2 database
Project: Hibernate ORM
Priority: Major Major
Reporter: Uli Bubenheimer
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira