-->
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: Clarification of session.lock() behaviour
PostPosted: Tue Mar 30, 2004 10:48 am 
Beginner
Beginner

Joined: Fri Oct 10, 2003 10:12 am
Posts: 39
hi,

i was just looking for a quick clarification of session.lock(). i'm using disconnected objects with multiple sessions and want to be able to load an object, perform simple modifications then reassociate the object with a new session to lazy load a collection without saving any changes that have been made. should i use LockMode.NONE?

if i use LockMode.READ to have a version check too, will that save the state of the object?

thanks, cam


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.