-->
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.  [ 1 post ] 
Author Message
 Post subject: How to reset cache on a specific entity
PostPosted: Mon Dec 14, 2009 4:35 am 
Newbie

Joined: Sun Dec 06, 2009 2:59 am
Posts: 2
Hi There,

Is it possible to reset the second-level cache in hibernate for a specific entity. for example in my case im planning to setup a entity called COUNTRY_LIST as read-only cache since the country list is static for almost all of the time but wondering what would happen if i want to update a country record, typical way we do this would be running an update query against the database which wont go through the application in such case is there a way i can call something like reset() on the cache holding details on this Entity so that only this entity details will be reset and rest will be preserved?, can this be done programatically?

Thank you,
bala.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.