Package org.apache.openjpa.persistence.kernel.common.apps

Examples of org.apache.openjpa.persistence.kernel.common.apps.OuterJoinValuePC


  public void setUp()
  {
    deleteAll(OuterJoinValuePC.class);

    OuterJoinValuePC pc = new OuterJoinValuePC (10);
    pc.setStringField ("pc");
    pc.setValue1 (1);
    pc.setValue2 (2);

    EntityManager pm = currentEntityManager();
    startTx(pm);
    pm.persist(pc);
    endTx(pm);

    oid = pc.getId();
    endEm(pm);
  }
View Full Code Here


  public void testNull ()
  {
    EntityManager pm = currentEntityManager();
    startTx(pm);
    OuterJoinValuePC pc = pm.find(OuterJoinValuePC.class, oid);

    pc.setValue1 (0);
    pc.setValue2 (0);
    endTx(pm);
    endEm(pm);

    pm = currentEntityManager();
    pc = pm.find(OuterJoinValuePC.class, oid);
    assertEquals (0, pc.getValue1 ());
    assertEquals (0, pc.getValue2 ());
    endEm(pm);
  }
View Full Code Here

  public void testUpdate ()
  {
    EntityManager pm = currentEntityManager();
    startTx(pm);
    OuterJoinValuePC pc = pm.find(OuterJoinValuePC.class, oid);
    pc.setValue1 (3);
    pc.setValue2 (0);
    endTx(pm);
    endEm(pm);

    pm = currentEntityManager();
    pc = pm.find(OuterJoinValuePC.class, oid);
    assertEquals (3, pc.getValue1 ());
    assertEquals (0, pc.getValue2 ());
    endEm(pm);
  }
View Full Code Here

  public void testInsert ()
  {
    // just tests the values inserted in the setup method
    EntityManager pm = currentEntityManager();
    OuterJoinValuePC pc = pm.find(OuterJoinValuePC.class, oid);
    assertEquals ("pc", pc.getStringField ());
    assertEquals (1, pc.getValue1 ());
    assertEquals (2, pc.getValue2 ());
    endEm(pm);
  }
View Full Code Here

  public void setUp()
  {
    deleteAll(OuterJoinValuePC.class);

    OuterJoinValuePC pc = new OuterJoinValuePC (10);
    pc.setStringField ("pc");
    pc.setValue1 (1);
    pc.setValue2 (2);

    EntityManager pm = currentEntityManager();
    startTx(pm);
    pm.persist(pc);
    endTx(pm);

    oid = pc.getId();
    endEm(pm);
  }
View Full Code Here

  public void testNull ()
  {
    EntityManager pm = currentEntityManager();
    startTx(pm);
    OuterJoinValuePC pc = pm.find(OuterJoinValuePC.class, oid);

    pc.setValue1 (0);
    pc.setValue2 (0);
    endTx(pm);
    endEm(pm);

    pm = currentEntityManager();
    pc = pm.find(OuterJoinValuePC.class, oid);
    assertEquals (0, pc.getValue1 ());
    assertEquals (0, pc.getValue2 ());
    endEm(pm);
  }
View Full Code Here

  public void testUpdate ()
  {
    EntityManager pm = currentEntityManager();
    startTx(pm);
    OuterJoinValuePC pc = pm.find(OuterJoinValuePC.class, oid);
    pc.setValue1 (3);
    pc.setValue2 (0);
    endTx(pm);
    endEm(pm);

    pm = currentEntityManager();
    pc = pm.find(OuterJoinValuePC.class, oid);
    assertEquals (3, pc.getValue1 ());
    assertEquals (0, pc.getValue2 ());
    endEm(pm);
  }
View Full Code Here

  public void testInsert ()
  {
    // just tests the values inserted in the setup method
    EntityManager pm = currentEntityManager();
    OuterJoinValuePC pc = pm.find(OuterJoinValuePC.class, oid);
    assertEquals ("pc", pc.getStringField ());
    assertEquals (1, pc.getValue1 ());
    assertEquals (2, pc.getValue2 ());
    endEm(pm);
  }
View Full Code Here

  public void setUp()
  {
    deleteAll(OuterJoinValuePC.class);

    OuterJoinValuePC pc = new OuterJoinValuePC (10);
    pc.setStringField ("pc");
    pc.setValue1 (1);
    pc.setValue2 (2);

    EntityManager pm = currentEntityManager();
    startTx(pm);
    pm.persist(pc);
    endTx(pm);

    oid = pc.getId();
    endEm(pm);
  }
View Full Code Here

  public void testNull ()
  {
    EntityManager pm = currentEntityManager();
    startTx(pm);
    OuterJoinValuePC pc = pm.find(OuterJoinValuePC.class, oid);

    pc.setValue1 (0);
    pc.setValue2 (0);
    endTx(pm);
    endEm(pm);

    pm = currentEntityManager();
    pc = pm.find(OuterJoinValuePC.class, oid);
    assertEquals (0, pc.getValue1 ());
    assertEquals (0, pc.getValue2 ());
    endEm(pm);
  }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.kernel.common.apps.OuterJoinValuePC

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.