-->
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: "inheritance" of locking mode?
PostPosted: Fri Mar 12, 2004 7:06 am 
Beginner
Beginner

Joined: Mon Sep 08, 2003 6:52 am
Posts: 46
If I have an object that's been locked with LockMode.UPGRADE,
and I then get another persisted object through a method call
on the first object, is there any way to for the second object to
have been locked as well?

Something like:

Code:
foo = session.load(Foo.class, id, LockMode.UPGRADE);
bar = foo.getBar();


I'm wondering if it's possible for bar to have UPGRADE lock mode
as well...

Thanks,

H


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.