-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Prepare Set on demand
PostPosted: Wed Feb 21, 2007 12:17 pm 
Newbie

Joined: Fri Jan 05, 2007 6:44 am
Posts: 12
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.