public void testLongPkOneToManyBidirChildren_NoTxn() throws Exception {
testLongPkOneToManyBidirChildren(NEW_EM_START_END);
}
private void testLongPkOneToManyBidirChildren(StartEnd startEnd)
throws Exception {
HasLongPkOneToManyBidirChildrenJPA pojo = new HasLongPkOneToManyBidirChildrenJPA();
HasLongPkOneToManyBidirChildrenJPA.ChildA
a = new HasLongPkOneToManyBidirChildrenJPA.ChildA();
pojo.setChildAList(Utils.newArrayList(a));
startEnd.start();
em.persist(pojo);
startEnd.end();
startEnd.start();
pojo = em.find(HasLongPkOneToManyBidirChildrenJPA.class, pojo.getId());
assertEquals(1, pojo.getChildAList().size());
assertEquals(pojo, pojo.getChildAList().get(0).getParent());
startEnd.end();
}