-->
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: Determining object state
PostPosted: Thu Dec 09, 2004 11:29 am 
Regular
Regular

Joined: Thu Oct 07, 2004 4:45 pm
Posts: 92
Am I correct in thinking there is no API that will tell me whether an object is in a detached state or not? I'm trying to determine whether or not it is "safe" to call lock on an object given that it might be associated with a suspended transaction/session further down the call stack. (I'm using Spring for transaction management.)

If there is no API, does anyone have a suggestion on how to handle this? I guess I could use Interceptor to maintain a list of all objects associated with any open sessions, but I'm hoping there is an easier way.

Thanks.


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.