Community
Participate
Working Groups
The following sequence fails for cacheable entities: Object ref = em.getRefrerence(MyCacheableEntity, id) em.remove(ref); em.getTx().commit(); em.clear(); assertNull(em.find(MyCacheableEntity, id)); Its seams that the reference is not removed from the cache. If i disable caching, the above sequence succeeds. The issue can be reproduced by eclipselink.jpa.wdf.test - org.eclipse.persistence.testing.tests.wdf.jpa1.entitymanager.TestGetReference - testRemove As a prerequisite caching must be enabled (selectively): https://bugs.eclipse.org/bugs/attachment.cgi?id=188603
see also: bug 336731 and bug 336741
Fix for 336726 fixes this. *** This bug has been marked as a duplicate of bug 336726 ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink