testLongPkOneToManyBidirChildren(startEnd, new BidirMiddleLongPkChildKey());
testLongPkOneToManyBidirChildren(startEnd, new BidirBottomLongPkChildKey());
}
private void testLongPkOneToManyBidirChildren(StartEnd startEnd,
BidirTopLongPkChildKey child) {
HasOneToManyListLongPkChildKeyPk pojo = new HasOneToManyListLongPkChildKeyPk();
pojo.setChildren(Utils.newArrayList(child));
startEnd.start();
pm.makePersistent(pojo);
startEnd.end();
startEnd.start();
pojo = pm.getObjectById(HasOneToManyListLongPkChildKeyPk.class, pojo.getId());
assertEquals(1, pojo.getChildren().size());
assertEquals(pojo, pojo.getChildren().get(0).getParent());
startEnd.end();
}