I decided to use Entity Graph capability of JPA 2.1 in my recently started project but I faced with a problem.
It goes well when you extend your graph over ManyToOne relationships but for OneToMany, results get duplicated because my provider (Hibernate) uses a left outer join.
I saw some solutions they came up with Distinct key word to tackle this problem but I think it is a tricky solution, even yet How we can get next level Entities Distinct.
I mean if I have 3 entities A, B and C I will use Distinct on A not B where B has a OneToMany relationship to C then we get duplicated records of B inside A and so on