-->
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: find method in different transactions
PostPosted: Wed Nov 15, 2006 6:02 am 
Newbie

Joined: Wed Nov 15, 2006 5:53 am
Posts: 3
Hi everybody,

The problem that i am facing is the following:

I have two different transaction: A and B.
1.I start the trans A ( in the debug mode ) and in the middle of this transaction, i also start trans B that modifies some data.
2. I commit the transaction B.

3.I try to see the modifications in trans A with a find method on the data
that was modified by transaction B.

The problem is the modifications cannot be seen in transaction A, unless I do a session.refresh on the object, but this is something i want to avoid.

Does anybody have an idea why this happens?

The transactions are managed by the application, the code is according to hibernate specifications and the version is 2.1.7.

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.