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.
|