public void testUnsupportedInheritanceMappings_NoTxn() {
switchDatasource(PersistenceManagerFactoryName.nontransactional);
testUnsupportedInheritanceMappings(NEW_PM_START_END);
}
private void testUnsupportedInheritanceMappings(StartEnd startEnd) {
HasOneToManyWithUnsupportedInheritanceList parent = new HasOneToManyWithUnsupportedInheritanceList();
parent.getChildren1().add(new CompleteTableParentWithCompleteTableChild.Child());
makePersistentWithExpectedException(startEnd, parent);
parent = new HasOneToManyWithUnsupportedInheritanceList();
parent.getChildren2().add(new CompleteTableParentWithNewTableChild.Child());
makePersistentWithExpectedException(startEnd, parent);
parent = new HasOneToManyWithUnsupportedInheritanceList();
parent.getChildren3().add(new CompleteTableParentWithSubclassTableChild.Child());
makePersistentWithExpectedException(startEnd, parent);
parent = new HasOneToManyWithUnsupportedInheritanceList();
parent.getChildren4().add(new CompleteTableParentNoChildStrategy.Child());
makePersistentWithExpectedException(startEnd, parent);
parent = new HasOneToManyWithUnsupportedInheritanceList();
parent.getChildren5().add(new NewTableParentWithCompleteTableChild.Child());
makePersistentWithExpectedException(startEnd, parent);
parent = new HasOneToManyWithUnsupportedInheritanceList();
parent.getChildren6().add(new NewTableParentWithSubclassTableChild.Child());
makePersistentWithExpectedException(startEnd, parent);
parent = new HasOneToManyWithUnsupportedInheritanceList();
parent.getChildren7().add(new NewTableParentWithNewTableChild.Child());
makePersistentWithExpectedException(startEnd, parent);
}