Package com.google.appengine.datanucleus.test.jpa.UnidirectionalSingeTableChildJPA

Examples of com.google.appengine.datanucleus.test.jpa.UnidirectionalSingeTableChildJPA.UnidirTop


    testOneToManyChildAtMultipleLevels(NEW_EM_START_END);
  }
  private void testOneToManyChildAtMultipleLevels(StartEnd startEnd)
      throws Exception {
    HasPolymorphicRelationsListJPA.HasOneToManyChildAtMultipleLevelsJPA pojo = new HasPolymorphicRelationsListJPA.HasOneToManyChildAtMultipleLevelsJPA();
    UnidirTop unidir1 = new UnidirTop();
    pojo.setUnidirChildren(Utils.newArrayList(unidir1));
    HasPolymorphicRelationsListJPA.HasOneToManyChildAtMultipleLevelsJPA child = new HasPolymorphicRelationsListJPA.HasOneToManyChildAtMultipleLevelsJPA();
    UnidirTop unidir2 = new UnidirMiddle();
    child.setUnidirChildren(Utils.newArrayList(unidir2));
    pojo.setChild(child);
    startEnd.start();
    em.persist(pojo);
    startEnd.end();
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jpa.UnidirectionalSingeTableChildJPA.UnidirTop

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.