Invalidating JPA EntityManager session
There are two levels of caches: 1st level is the EntityManager’s own cache. You can either refresh on one entity and it will be reloaded form the database, or you can clear the entity manager itself, in which case all entities are removed from the cache. There is no way with JPA to evict only … Read more