Hi all,
I have faced the classical problem of duplicates result when using an eager fetching.
In one case, I thought having duplicates result but instead I had unique result.
A has a OneToMany association with B.
I insert 2 instances of A (each of them are associated with 2 B). When running the query "from A a left join fetch a.bs", I have a list which contains 2 A (no duplicates).
I add a new instance of A (with a collections of 2 B), I run again the query, and as expected, I have a list with duplicates result.
I didn't find any bug on this point.
|