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

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


    // Persist Parent+Child (1-N relation) to old storage version
    PersistenceManagerFactory oldPMF = JDOHelper.getPersistenceManagerFactory("originalStorageVersion");
    PersistenceManager oldPM = oldPMF.getPersistenceManager();
    MigratorOneToManyParent p = new MigratorOneToManyParent();
    p.setName("First Parent");
    MigratorOneToManyChild c = new MigratorOneToManyChild();
    c.setName("Child 1");
    p.addChild(c);
    beginTxn();
    oldPM.makePersistent(p);
    commitTxn();
    ObjectIdentity pId = (ObjectIdentity)oldPM.getObjectId(p);
View Full Code Here

TOP

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

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.