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

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


        assertEquals(1, test3Count);
    }

    public void testContainsNewlyPersisted() {
        RuntimeTest1 test1 = new RuntimeTest1();
        RuntimeTest1 test2 = new RuntimeTest2();

        OpenJPAEntityManager pm = getPM();

        // pcl: 14 Oct 2003: default in 3.0 is now true, but this test
        // assumes false somewhere.
View Full Code Here


        // pcl: 14 Oct 2003: default in 3.0 is now true, but this test
        // assumes false somewhere.
        pm.setIgnoreChanges(false);
        startTx(pm);
        try {
            RuntimeTest2 test2 =
                pm.find(RuntimeTest2.class, _oid2);
            pm.remove(test2);
            RuntimeTest1 test1 = new RuntimeTest1();
            pm.persist(test1);
            pm.remove(test1);
View Full Code Here

        OpenJPAEntityManager pm = getPM();
        startTx(pm);

        RuntimeTest1 b = new RuntimeTest1("STRING", 10);
        RuntimeTest2 c = new RuntimeTest2("STRING2", 11);
        pm.persist(b);
        pm.persist(c);

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

        EntityManager em = currentEntityManager();
        startTx(em);

        RuntimeTest1 a = new RuntimeTest1("STRING", 10);
        RuntimeTest2 b = new RuntimeTest2("STRING2", 11);
        em.persist(a);
        em.persist(b);
        _id = a.getIntField();
        b.getIntField();

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

        OpenJPAEntityManager pm = getPM();
        startTx(pm);

        RuntimeTest1 a = new RuntimeTest1("STRING", 10);
        RuntimeTest2 b = new RuntimeTest2("STRING2", 11);
        pm.persist(a);
        pm.persist(b);
        _id = a.getIntField();
        _id2 = b.getIntField();

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

TOP

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

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.