-->
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.  [ 2 posts ] 
Author Message
 Post subject: Initialize lazy collections in new session
PostPosted: Tue Feb 15, 2005 4:41 am 
Newbie

Joined: Thu Nov 04, 2004 10:24 am
Posts: 17
There is an object with a lazy collection that is not initialized in a certain session. I want to hold the object in a Swing GUI, and in the next session I want to reattach this object it and load in the collection (so that I can traverse to other objects and show them in Swing).

lock() looks good, but seems to be intended for saving state-change, rather than reading new info.

So, how can this be done?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 15, 2005 6:01 am 
Beginner
Beginner

Joined: Mon Aug 02, 2004 1:08 pm
Posts: 42
Usually you reassociate object either with lock(object, LockMode.NONE) or with update(object). You probably need update(...).


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

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.