-->
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: Clearing entire Second Level cache programmatically?
PostPosted: Mon Aug 14, 2006 12:22 am 
Newbie

Joined: Thu Jul 27, 2006 8:54 pm
Posts: 2
We are using Hibernate 3 with a second level cache and we have a requirement to be able to programmatically clear (i.e. evict) everything from the second level cache. Is there a way to achieve this through hibernate?

I know I can use SessionFactory.evict (and similar methods) but I have to call it for each class, entity or collection: we have alarge number of classes being cached and this approach will inevitably lead to errors when classes are added or removed (as well being very tedious).

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 4:18 am 
Newbie

Joined: Thu Apr 13, 2006 9:26 am
Posts: 9
Sorry. Wrong forum.


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.