-->
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: The open transaction does not read the updated value from ex
PostPosted: Mon May 09, 2011 9:49 am 
Newbie

Joined: Tue Apr 19, 2011 9:25 am
Posts: 5
I have a testcase which use the JPA Transaction Manager, transaction annotation to open a transaction.

once the transaction is open, that is the flow is inside the method , I put a breakpoint.
Now I modify the first name of teh record that is going to be fetched from the method from DB visualizer.(It is on auto commit).

no I release the break point , and let it read the value from the database. I see the hibernate select query in then console, but when i see the first name, then it has the old value.

I am using this test case to replicate my issue.

I have tried different isolation level, like read_commited, read_uncommited.

I am not able to understand why is it not fetching the updated value when the value was updated after the transaction was open, but not closed.

Please advice.

I am using SPring , JPA, Hibernate as the JPA implementer . The database is DB2


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.