switchDatasource(PersistenceManagerFactoryName.nontransactional);
getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
testUnencodedStringPkOneToManyBidirChildren(NEW_PM_START_END);
}
private void testUnencodedStringPkOneToManyBidirChildren(StartEnd startEnd) {
HasUnencodedStringPkOneToManyBidirChildrenJDO pojo = new HasUnencodedStringPkOneToManyBidirChildrenJDO();
pojo.setId("yar");
HasUnencodedStringPkOneToManyBidirChildrenJDO.ChildA
a = new HasUnencodedStringPkOneToManyBidirChildrenJDO.ChildA();
pojo.setChildAList(Utils.newArrayList(a));
startEnd.start();
pm.makePersistent(pojo);
startEnd.end();
startEnd.start();
pojo = pm.getObjectById(HasUnencodedStringPkOneToManyBidirChildrenJDO.class, pojo.getId());
assertEquals(1, pojo.getChildAList().size());
assertEquals(pojo, pojo.getChildAList().get(0).getParent());
startEnd.end();
}