-->
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: Seeing the changes made by a stored proc.
PostPosted: Fri Feb 25, 2005 12:37 pm 
Newbie

Joined: Fri Feb 25, 2005 12:30 pm
Posts: 1
I call a stored proc within a Hibernate transaction. The stored proc changes the state of the db. After the stored proc returns, I need to see those changes. How does that happen? My current code does not "see the changes" made by the stored proc...It seems that my code is hitting the Session cache, and the objects in the cache have not been updated. Is there a way of bypassing the cache? Should I simply evict the object from the session?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 1:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Clear your caches using evict/clear


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.