dnoyeb wrote:
I have an object that has children.
class Parent {
List children;
}
The children are lazy loaded. But I want them to be all loaded or none loaded. I do not want them loading one at a time. And I do not want them automatically loaded every time I load "Parent."
What is a good strategy to force all the children to be loaded at once when I am ready for them? Once this collection is loaded, it will change outside of a session. At some point I will want to have the changes saved. What is a good strategy for getting children updated to its new state?
I have been reading the documentation, but am quite new and recently from JDO which I know how to do this in. Wondering how I can do this with Hibernate.
Thanks!
fetch = "subselect"