Thanks Kevin,

I am using OpenJPA 1.2, and as I understood, based on the version, clearing
could be different. Therefore, using evictAll() will work for all version.
But for clearing cache from all entity of a special class, I think evict is
a bit complicated and we can use DataCache utility to clear one object from
cache. However, I did not find any sample code about how to obtain
DataCache. I guess DataCache is not supported in the newer versions. But for
us, clearing  Data Cache with DataCache class is enough for us. Can you give
an example, about clearing data cache using DataCache method?

Thanks in advance,
Nasser Fard
-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/How-to-reset-OpenJPA-cache-tp5564799p5571493.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to