testUnencodedStringPkOneToManyBidirChildren(startEnd, new BidirTopUnencodedStringPkChildKey(), "yat");
}
private void testUnencodedStringPkOneToManyBidirChildren(StartEnd startEnd,
BidirTopUnencodedStringPkChildKey child, String id) {
HasOneToManyListUnencodedStringPkChildKey pojo = new HasOneToManyListUnencodedStringPkChildKey();
pojo.setId(id);
pojo.setChildren(Utils.newArrayList(child));
startEnd.start();
pm.makePersistent(pojo);
startEnd.end();
startEnd.start();
pojo = pm.getObjectById(HasOneToManyListUnencodedStringPkChildKey.class, pojo.getId());
assertEquals(1, pojo.getChildren().size());
assertEquals(pojo, pojo.getChildren().get(0).getParent());
startEnd.end();
}