How can I prepared a set which is part of an entity?
In my mapping I have a set which is lazy, however I have a remote client and therefore I dont want proxies, I want the actual instance.
Aside from setting the set to lazy='false' is there another way?
I have used FETCH join type before on associations and this type of behaviour I want to achieve.
After calling my generic search, in the service layer I am left with an object which wraps a collection of enties represeing the results.
I basically want to go:
Hibernate.initialize( 'every single set in each of the parent entities' );
Is this possible aside from iterating through each result and initialising each set?
JC.
|