We are currently considering implementing Hibernate and are excited about it's lazy-load capabilities because it will allow our domain objects to be fully functional without having to worry about whether their relationships have been loaded. However, there are certain scenarios where we might want to do an outer join to force an object and its relationships to be loaded with a single SQL statement (for performance, when we know they will be needed and perhaps lazy loading is not performing at the level we need).
Is it possible to programatically alter the lazy loading characteristics of an object relationship at runtime, according to how our application may need to use an object in different situations, or are the o/r mappings fixed at deploy time?
Thanks,
|