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

Examples of org.apache.openjpa.persistence.jdbc.common.apps.ConstantJoinPC4


  public void testConstantOneToOne1 ()
  {
    EntityManager pm = currentEntityManager();
    startTx(pm);
    ConstantJoinPC4 pc4 =  pm.find(ConstantJoinPC4.class, oid);
    assertEquals (2, pc4.getManyToMany ().size ());
        assertEquals ("pc5-one-to-one-1", pc4.getOneToOne1().getName());

    endTx(pm);
    endEm(pm);
  }
View Full Code Here


  }

  public void testSharedJoinTableModifications ()
  {
    EntityManager pm = currentEntityManager();
    ConstantJoinPC4 pc4 = pm.find(ConstantJoinPC4.class, oid);
    startTx(pm);
    pc4.getManyToMany ().clear ();
    endTx(pm);

    EntityManager pm2 = currentEntityManager();
    pc4 = pm2.find(ConstantJoinPC4.class, oid);
    assertNotNull (pc4.getOneToOne1 ());
    assertEquals (0, pc4.getManyToMany ().size ());
  }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.jdbc.common.apps.ConstantJoinPC4

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.