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

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


  public void testPersist() throws Exception {
    PersistenceManager pm = pmf.getPersistenceManager();
    try {
      // Persist Side A
      UnownedJDOManyToManySideB b = new UnownedJDOManyToManySideB();
      pm.makePersistent(b);

      // Create and persist Side B with another Side A, plus the existing Side A
      UnownedJDOManyToManySideA a = new UnownedJDOManyToManySideA();
      UnownedJDOManyToManySideB b2 = new UnownedJDOManyToManySideB();
      b2.getAs().add(a);
      a.getBs().add(b2);
      a.getBs().add(b);
      b.getAs().add(a);
      pm.makePersistent(b2);
      pm.makePersistent(a);
View Full Code Here

TOP

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

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.