Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
I'm a hibernate newbie - and so far I've found it to be a great concept and a great tool.
I'm working in a 3-tier web/ ejb architecture using the auto-flushing and auto session closing, and container managed transactions. Fantastic stuff.
I have an object A with several sets of children say B, C and D.
The user goes to the details page for A - and hibernate loads up A in its entirety using an HQL query (outer join fetch) to retrieve all the child sets.
Beautiful.
The user updates A and submits from the browser.
I've used select-before-update="true" and dynamic-update="true" to get Hibernate to write an efficient update statement for only the columns that have changed.
However when hibernate does this select it does separate selects for each of the Collections that form A.
Is there any way to tune Hibernate to use outer join fetching when it does this select-before-update ( as it does when I run the HQL query)
I've tried setting fetch="join" on each of the many-to-one mappings - but to no avail.
Any help much appreciated
Hibernate version: 3.05
Name and version of the database you are using: SQL Server 2000