-->
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: Can hibernate destory all cache on-the-fly?
PostPosted: Wed Apr 07, 2004 4:47 am 
Newbie

Joined: Wed Aug 27, 2003 5:31 am
Posts: 10
Hi, hibernate guru & fans
Recently, we encountered a tough problem in a project. The customer want to modified the data
manually(bypass the application). Unfutunately, these data are cached. In order to solve
the headache to synchronize cache with the data in database, we deside to simply destroy all cache
and provide an button to let the user trigger this operation.
I searched hibernate's cache api in hope of finding such method.
SessionFactory.close() seems to be a candidate, but besides destroy cache, it also close
connection thus make the SessionFactory unusable.
So I hope there to be an method clearAllCache() in SessionFactory(). In this way, we can
still use SessionFactory after clear all cache and minimize the change to existing codebase.

Regards,
Justin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 07, 2004 7:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Of course, all the evictXXX() methods!


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.