Hibernate Eager Fetch gets Too Many Results

Working on a bug today, there was a list of items with a set of sub items coming back from the database via Hibernate. Something like this in pseudocode: Here are your data sets for PARENT(parent_id, name): (1,”parent1″) (2,”parent2″) And your data sets for CHILD(child_id,parent_id(foreign key),name) (1,1,”child1″) (2,1,”child2″) (3,2,”child3″) (4,2,”child4″) When you try to make […]