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

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


  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

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.