I have the same problem. I can verify with the generated SQL that the join is performed and looking at the debug output I see a line like this:
Code:
2005-11-22 18:34:36,470 DEBUG [org.hibernate.loader.Loader] done processing result set (33 rows)
2005-11-22 18:34:36,470 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
2005-11-22 18:34:36,470 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2005-11-22 18:34:36,470 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing statement
2005-11-22 18:34:36,470 DEBUG [org.hibernate.loader.Loader] total objects hydrated: 73
But after that hibernate still wants to initialize the one-to-many collections with a SQL for each parent object. Although all child objects were already initialized.
I set
Quote:
hibernate.max_fetch_depth = 3