Hibernate fetching a list
posted 4 years ago
So I have a query that returns N entities, each with multiple layers of subdetail. Is there a way i can get Hibernate to build a join so it can populate the object hierarchy in each row from a single statement? Because today, according to the show_sql attribute being on, I can see that it is making a query for each detail element. That isn't going to scale nicely over some features.