703704705706707708709710711712713
} public void testMissingDiscriminator() { switchDatasource(getEntityManagerFactoryName()); beginTxn(); em.persist(new ChildToParentWithoutDiscriminator()); try { commitTxn(); fail("expected exeception"); } catch (Exception e) { // good
715716717718719720721722723724725
} public void testMissingDiscriminator_NoTxn() { switchDatasource(getEntityManagerFactoryName()); try { em.persist(new ChildToParentWithoutDiscriminator()); em.close(); fail("expected exeception"); } catch (Exception e) { // good }