I\'m working on a Java project using JPA 2 + Hibernate 4.2.6 and I\'m getting a strange behaviour.
In my model I have two related entites: Question
and
You are most likely getting duplicates because when using fetch=FetchType.EAGER, Hibernate uses an outer join to fetch the data in the joined table.
Try removing the eager fetching to confirm. If it is the case, you should either remove the eager fetching, keep a Set instead of a List, or write a JPQL query to retrieve exactly what you need.
From Hibernate doc:
The recommanded approach is to use LAZY on all static fetching definitions and override this choice dynamically through JP-QL.