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

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


    testUnencodedStringPkOneToManyBidirChildren(startEnd, new BidirTopUnencodedStringPkChildKey(), "yat");
  }
 
  private void testUnencodedStringPkOneToManyBidirChildren(StartEnd startEnd,
      BidirTopUnencodedStringPkChildKey child, String id) {
    HasOneToManyListUnencodedStringPkChildKey pojo = new HasOneToManyListUnencodedStringPkChildKey();
    pojo.setId(id);
    pojo.setChildren(Utils.newArrayList(child));
    startEnd.start();
    pm.makePersistent(pojo);
    startEnd.end();
    startEnd.start();
    pojo = pm.getObjectById(HasOneToManyListUnencodedStringPkChildKey.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.HasOneToManyListUnencodedStringPkChildKey

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.