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

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


    testLongPkOneToManyBidirChildren(startEnd, new BidirMiddleLongPkChildKey());
    testLongPkOneToManyBidirChildren(startEnd, new BidirBottomLongPkChildKey());
  }
  private void testLongPkOneToManyBidirChildren(StartEnd startEnd,
      BidirTopLongPkChildKey child) {
    HasOneToManyListLongPkChildKeyPk pojo = new HasOneToManyListLongPkChildKeyPk();
    pojo.setChildren(Utils.newArrayList(child));
    startEnd.start();
    pm.makePersistent(pojo);
    startEnd.end();
    startEnd.start();
    pojo = pm.getObjectById(HasOneToManyListLongPkChildKeyPk.class, pojo.getId());
    assertEquals(1, pojo.getChildren().size());
    assertEquals(pojo, pojo.getChildren().get(0).getParent());
    startEnd.end();
  }
View Full Code Here

TOP

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

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.