switchDatasource(PersistenceManagerFactoryName.nontransactional);
getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
testDeleteChildWithSeparateNameField(NEW_PM_START_END);
}
private void testDeleteChildWithSeparateNameField(StartEnd startEnd) {
HasChildWithSeparateNameFieldJDO parent = new HasChildWithSeparateNameFieldJDO();
HasEncodedStringPkSeparateNameFieldJDO child = new HasEncodedStringPkSeparateNameFieldJDO();
child.setName("the name");
parent.getChildren().add(child);
startEnd.start();
pm.makePersistent(parent);
startEnd.end();
startEnd.start();
parent = pm.getObjectById(HasChildWithSeparateNameFieldJDO.class, parent.getId());
pm.deletePersistent(parent);
startEnd.end();
}