assertEquals(3, hv.getVersion().longValue());
}
public void testVersionInheritance() {
BaseVersionSubclass base = new BaseVersionSubclass(1, "First");
beginTxn();
em.persist(base);
commitTxn();
assertEquals(1, base.getVersion());
beginTxn();
base.setName("Second");
commitTxn();
assertEquals(2, base.getVersion());
em.close();
}