Package com.google.appengine.datanucleus.jdo

Source Code of com.google.appengine.datanucleus.jdo.Issue207Test

package com.google.appengine.datanucleus.jdo;

import org.datanucleus.util.NucleusLogger;

import com.google.appengine.datanucleus.test.jdo.Issue207Child;
import com.google.appengine.datanucleus.test.jdo.Issue207Parent;

public class Issue207Test extends JDOTestCase {

  public void testOneToManyInterface() {
    Issue207Parent parent = new Issue207Parent("The parent");
    Issue207Child child = new Issue207Child("The child");
    parent.getChildren().add(child);
    child.setParent(parent);

    // Persist the objects
    beginTxn();
    NucleusLogger.GENERAL.info(">> inserting parent+child");
    pm.makePersistent(parent);
    commitTxn();
    pm.evictAll();

    // Check the results
  }
}
TOP

Related Classes of com.google.appengine.datanucleus.jdo.Issue207Test

TOP
Copyright © 2018 www.massapi.com. 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.