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.
|