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

Examples of com.google.appengine.datanucleus.test.jdo.HasDatastoreIdentityChildJDO


  }

  public void testOneToMany() {
    HasDatastoreIdentityParentJDO pojo = new HasDatastoreIdentityParentJDO();
    pojo.setName("First Name");
    HasDatastoreIdentityChildJDO child1 = new HasDatastoreIdentityChildJDO();
    child1.setName("Child 1");
    pojo.getChildren().add(child1);
    HasDatastoreIdentityChildJDO child2 = new HasDatastoreIdentityChildJDO();
    child2.setName("Child 2");
    pojo.getChildren().add(child2);

    pm.makePersistent(pojo);
    Object id = pm.getObjectId(pojo);
    pm.evictAll();
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.HasDatastoreIdentityChildJDO

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.