persistence@glassfish.java.net

Clear All

From: Adam Bien <abien_at_adam-bien.com>
Date: Mon, 28 Jan 2008 17:20:27 +0100

Hello,

is it possible to clear all entities in the TopLink Caches? The method
EntityManager::clear() expects an Entity as an argument - so you have to
hold all attached entities which have to have cleared (which is hard in
the practice).

I know this functionality is proprieatary and not a part of the JPA
standard. Is there a way in TopLink Essentials to clear all entities in
the second level cache?

thank you in advance,

regards,

adam