Hi Guys,
I am using Hibernate 2.1.6.
This is a scenario where i would like your help.
I have a parent child relationship as 1 to many with lazy loading has been set to "true" in mapping file.
So by default if i am loading a parent it wont load children and if i use "fetch" in the HQL it loads the children. So far so good.
Now the situation is at some places i have to make use of the
Session.load(parentobject, parent_primarykey), now how i can tweak this to load the children if i want to( in some cases) and for other cases its good as it won't load the children.
Any help will be highly appreciated.
Thanks
|