Outer fetching is supported for lists, however, the eager and lazy fetching behavior depends on the query method you are using:
- Navigating/walking the object graph uses the fetching strategies defined in the mapping files
- Retrieval by identifier (get and load) use these default fetching strategies
- HQL _ignores_ any default fetching strategy, as it is used to define a _runtime_ fetching strategy
- Criterial does _not_ ignore the fetching strategies, but can also be used with a different runtime fetching strategy (FetchMode)
_________________ JAVA PERSISTENCE WITH HIBERNATE http://jpwh.org Get the book, training, and consulting for your Hibernate team.
|