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

Examples of org.apache.openjpa.persistence.meta.common.apps.SequenceAssigned2


        assertEquals(new Long(-100), pc2.getPK());
        endEm(pm);
    }

    public void testInheritance() {
        SequenceAssigned2 pc = new SequenceAssigned2();
        SequenceAssigned2 pc2 = new SequenceAssigned2();
        OpenJPAEntityManager pm =
            (OpenJPAEntityManager) currentEntityManager();
        startTx(pm);
        pm.persist(pc);
        pm.persist(pc2);
        pm.flush();
        assertTrue(0 != pc.getPK());
        assertTrue(0 != pc2.getPK());
        assertTrue(pc.getPK() != pc2.getPK());
        endTx(pm);
        endEm(pm);
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.meta.common.apps.SequenceAssigned2

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.