-->
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: multi thread update problem
PostPosted: Tue Sep 18, 2007 5:26 am 
Newbie

Joined: Tue Sep 18, 2007 5:04 am
Posts: 1
Hello All,

I have a problem with hibernate in multi thread application.

I get parent object from thread session and create new child object, after I run update for parent object. In other thread update this parent object without new child.

If I use find with lock for update ("select for update") it works correctly, but it works by db lock query without any caches and going very slowly.

Is there any solution for solve this problem for getting same object instance in different thread and session from second level cache?


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.