-->
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.  [ 2 posts ] 
Author Message
 Post subject: unable to fetch data after inserting new row
PostPosted: Mon Dec 03, 2007 11:29 am 
Newbie

Joined: Mon Dec 03, 2007 11:24 am
Posts: 9
Hi,

I have a problem with hibernate.
when i create a new entry in database, the query run well but when i try to update the entry just after creating it, the query returns null resultset. But if i go back to homepage and then returns to edit page the query works well.Plz help me


thanx

Jitendra


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 9:01 am 
Beginner
Beginner

Joined: Tue Jun 27, 2006 6:14 am
Posts: 24
Hi,

Probably not relevant, but is it due to using different JVM or transaction scopes?

We have a web front end that handles updates and talks to the DB directly (via hibernate). It then notifies another VM to reload the data and we need to be careful to ensure that it only looks for the data a little while later (a couple of seconds) as the changes are only committed at the end of the web call, but the notification happens in the middle of it.

Regards,
Chris


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.