Examples of HasOneToManyListJPA


Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManyListJPA

  public void testAddFetchedParentToBidirChild() throws Exception {
    testAddFetchedParentToBidirChild(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                     TXN_START_END);
  }
  public void testAddFetchedParentToBidirChild_NoTxn() throws Exception {
    testAddFetchedParentToBidirChild(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                     NEW_EM_START_END);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManyListJPA

    em.remove(parent);
    startEnd.end();
  }

  public void testOnlyOneParentPutOnParentAndChildUpdate() throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                               TXN_START_END);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManyListJPA

  public void testOnlyOneParentPutOnParentAndChildUpdate() throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                               TXN_START_END);
  }
  public void testOnlyOneParentPutOnParentAndChildUpdate_NoTxn() throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                               NEW_EM_START_END);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManyListJPA

    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                               NEW_EM_START_END);
  }

  public void testOnlyOnePutOnChildUpdate() throws Throwable {
    testOnlyOnePutOnChildUpdate(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                TXN_START_END);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManyListJPA

  public void testOnlyOnePutOnChildUpdate() throws Throwable {
    testOnlyOnePutOnChildUpdate(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                TXN_START_END);
  }
  public void testOnlyOnePutOnChildUpdate_NoTxn() throws Throwable {
    testOnlyOnePutOnChildUpdate(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                NEW_EM_START_END);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManyListJPA

  }

  public void testOnlyOneParentPutOnChildDelete() throws Throwable {
    // 1 put to remove the keys
    int expectedUpdatePuts = 1;
    testOnlyOneParentPutOnChildDelete(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                      TXN_START_END, expectedUpdatePuts);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManyListJPA

  }

  public void testOnlyOneParentPutOnChildDelete_NoTxn() throws Throwable {
    // updates are atomic when non-tx, so get 1 after each collection clear and 1 for the update.
    int expectedUpdatePuts = 5;
    testOnlyOneParentPutOnChildDelete(new HasOneToManyListJPA(), new BidirectionalChildListJPA(),
                                      NEW_EM_START_END, expectedUpdatePuts);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsListJPA.HasOneToManyListJPA

import static com.google.appengine.datanucleus.PolymorphicTestUtils.getEntityKind;

public class JPAOneToManyPolymorphicListTest extends JPAOneToManyPolymorphicTestCase {

  public void testInsert_NewParentAndChild() throws Exception {
    testInsert_NewParentAndChild(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 1, 1);
    testInsert_NewParentAndChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 2, 2);
    testInsert_NewParentAndChild(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsListJPA.HasOneToManyListJPA

    testInsert_NewParentAndChild(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 3, 3);
  }

  public void testInsert_NewParentAndChild_NoTxn() throws Exception {
    testInsert_NewParentAndChild(new BidirBottomList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Middle, 1, 1);
    testInsert_NewParentAndChild(new BidirTopList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Bottom, 2, 2);
    testInsert_NewParentAndChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsListJPA.HasOneToManyListJPA

    testInsert_NewParentAndChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 3, 3);
  }

  public void testInsert_ExistingParentNewChild() throws Exception {
    testInsert_ExistingParentNewChild(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 1, 1);
    testInsert_ExistingParentNewChild(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 2, 2);
    testInsert_ExistingParentNewChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 3, 3);
  }
View Full Code Here
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.