-->
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: How long does Hiberante take to synchronize to database
PostPosted: Thu Jan 04, 2007 11:50 am 
Newbie

Joined: Thu Jan 04, 2007 11:38 am
Posts: 1
Hello all,
I have a scenario and I can't seem to make heads or tails of it.

I have a web app that uses hibernate

I work in a predominately SQL shop where they use PL/SQL so I am a bit of an anomaly here but thats life

I have a java stored proc that POSTS to my web app

the business logic here is mostly in PL/SQL so there is a PL/SQL proc that uses my java stored proc

I write an object to hibernate, call commit explicitly and send back the ID

the stored proc "SOMETIMES" can't find this record by the ID I just returned

the data is there because we don't find out until the next day and I can see that it is in the table

the only scenario I see that makes sense is that the commit didn't happen immediately so when the stored proc queries it is in fact not there


Everywhere I read states that Session.flush() is called from Transaction.commit() so I shouldn't need to explicitly call it and I don't

I also read that commit should synchronize the database immediately but that doesn't seem to be as immediate as I would like


Am I missing something??

Does the synchronize take a bit of time to execute and is it asynchronous?


Thanks in advance

Brian


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.