I have the following mapping
1 User can have 0 or more roles.
Query
from User u JOIN Fetch u.roles
If User1 has two roles RoleA and RoleB.
Then User1 is returned twice.
What i expect is User1 should be returned Once with list of roles containing RoleA and RoleB
How can I fix this.
Also please explain behavior for Many To Many relationship.