Package com.google.appengine.datanucleus.test.jdo.HasPolymorphicRelationsListJDO

Examples of com.google.appengine.datanucleus.test.jdo.HasPolymorphicRelationsListJDO.HasOneToManyWithUnsupportedInheritanceList


  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);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.HasPolymorphicRelationsListJDO.HasOneToManyWithUnsupportedInheritanceList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.