jeudi 5 juin 2014

jpa newly created entity does not appear in query


Vote count:

0




We are writing a java ee web app on top of weblogic 12c - 12.1.2


JPA 2.0


Eclipselink 2.4.2


shared-cache-mode is set to ALL in persistence.xml


One strange behavior is, newly created jpa entity is not seen by query even after transaction commits


I can see the changes in db but not in the list page


if I do getEntityManager().getEntityManagerFactory().getCache().evict(thisClass) then the list page gets data again, and shows the new entity



asked 37 secs ago






Aucun commentaire:

Enregistrer un commentaire