Is there a way to automatically expire entity from cache when using EM's find()? [message #389446] |
Wed, 10 June 2009 08:32  |
Eclipse User |
|
|
|
I'm using extensively EntityManager's find() method to retrieve entities.
My issue is, that sometimes also external systems update the database, and
I need to pick up the changes, not immediately after they occur but in ten
minutes. find() method seems to ignore expiry time set using @Cache
annotation.
Is there any other way to refresh the entity than to call
EntityManager.refresh() method explicitly?
If not, is there a way to disable cache usage for find() method
completely? (I haven't yet been able to verify whether setting CacheType
to none does the trick, as it throws an error as I posted five minutes
ago.)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26405 seconds