-->
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.  [ 3 posts ] 
Author Message
 Post subject: Caching Problem.
PostPosted: Fri Oct 07, 2005 5:05 am 
Beginner
Beginner

Joined: Fri Apr 15, 2005 4:53 pm
Posts: 29
I've a problem with hibernate cache that anytime I update the data manually in database, the changes are not reflected until I start tomcat. Also, the saveOrUpdate() works fine but still cannot fetch it until the web server is restarted.

any suggestions?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 5:55 am 
Beginner
Beginner

Joined: Thu Jan 06, 2005 6:11 am
Posts: 32
Location: Magdeburg, Germany
Well, how could the changes be reflected if hibernate doesn't know anything about your changes, so the caching of hibernate gets useless.

I suggest you use "select before update" or better yet don't do any changes to your data at all outside of hibernate.

And better go reading the docs, this question would have been answered with ease...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 6:59 am 
Newbie

Joined: Fri Jun 10, 2005 11:25 am
Posts: 18
use method org.hibernate.session.refresh(Object object) to load DB's current state to hibernate object.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.