Hibernate 3.0.5
Is there a simple global property to turn the fetch strategy to EAGER for all the association mappings, HQL and Criteria queries? I couldn't find any and it seems that the Criteria API ignores our outer-join="true" settings.
If there isn't such a switch, how can I get the class (or entity name) from a Criteria object? I mean if I create that by Criteria.forName(MyClazz.class) (or using the overload with the String parameter), is there a way to get MyClazz.class back? Or is this simply missing from the API???
|