}
public void testDeleteChildWithSeparateNameField_NoTxn() throws Exception {
testDeleteChildWithSeparateNameField(TXN_START_END);
}
private void testDeleteChildWithSeparateNameField(StartEnd startEnd) throws Exception {
HasChildWithSeparateNameFieldJPA parent = new HasChildWithSeparateNameFieldJPA();
HasEncodedStringPkSeparateNameFieldJPA child = new HasEncodedStringPkSeparateNameFieldJPA();
child.setName("the name");
parent.getChildren().add(child);
startEnd.start();
em.persist(parent);
startEnd.end();
startEnd.start();
parent = em.find(HasChildWithSeparateNameFieldJPA.class, parent.getId());
em.remove(parent);
startEnd.end();
}