-->
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: Hibernate Session
PostPosted: Fri Jun 23, 2006 1:02 am 
Newbie

Joined: Thu Jun 15, 2006 5:58 pm
Posts: 18
I would like to get some clarifications between Session.lock and
Session.refresh.

For instance I open a session, load my object(X) and then close the session.

When I try to access the collection(Y) of object(X), I get owing session was closed .

do , I need to open a new session and reassociate the parent object with session.lock(X, LockMode.NONE)

Could some one give your thoughts.


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.