int e2Version = e2.getVersion();
String e1Sql = "UPDATE CacheableEntity SET VERSN=?1 WHERE ID=?2";
String e2Sql = "UPDATE XmlCacheableEntity SET VERSN=?1 WHERE ID=?2";
em.getTransaction().begin();
assertEquals(1, em.createNativeQuery(e1Sql).setParameter(1, e1Version + 1).setParameter(2, e1.getId())
.executeUpdate());
assertEquals(1, em.createNativeQuery(e2Sql).setParameter(1, e2Version + 1).setParameter(2, e2.getId())
.executeUpdate());
em.getTransaction().commit();
em.refresh(e1);