-->
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: [newbie]Hibernate caching?
PostPosted: Wed Dec 01, 2004 2:13 pm 
Newbie

Joined: Wed Dec 01, 2004 2:08 pm
Posts: 8
I am using Hibernate 2.1.7 with mySQL.

When I change a value in the database by means of the native frontend, Hibernate does not show the changes until I restart my webserver.

Does Hibernate cache and is there a way to switch that off?

Thanks for your help

Klaus


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2004 3:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hibernate does not cache anything without you have told it ;)

One way to tell it is to load all objects in have only one session (bad).
You might also have enabled the second-level cache.

Read the docs about session and cache handling.

Hibernate In Action is also very much recommended for this.

_________________
Max
Don't forget to rate


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.