Description
OpenJPA has a pretty aggressive optimistic cache, and if you do some work in jpa mode, then do work in another mode, then go back to jpa mode, the openjpa cache is going to be out of date.
Apparently the necessary call is
((OpenJPAEntityManagerFactory) emf).getStoreCache().evictAll();
Not sure how the app will get to this since the app only has an EM, not an EMF.