I am using OpenJPA. If I want to do a mass delete/update using the executeUpdate() method, will the JPA cache be updated? Or will this bypass the JPA cache? When I say “cache”, I am talking about both the L1 and L2 caches. Does the type of query matter (native vs. JPQL)? Thank you.
Share
The documentation says:
So, since OpenJPA doesn’t synchronize the L1 cache, I don’t see why it would (and how it could) synchronize the L2 cache. He could flush it, but I doubt it. It’s easy enough to test anyway.