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

Examples of org.apache.openjpa.persistence.enhance.common.apps.SubclassClone


     */
    public void testSubclassClone() {
        OpenJPAEntityManager pm =
            (OpenJPAEntityManager) currentEntityManager();
        startTx(pm);
        SubclassClone orig = new SubclassClone("test");
        pm.persist(orig);
        endTx(pm);
        pm.refresh(orig);
        SubclassClone copy = orig.safeClone();
        assertEquals("test", copy.getString());
        assertTrue(pm.isPersistent(orig));
        // this should be true since the sm should be VM copied.
        // as we intentionally don't handle this case.
        assertTrue(pm.isPersistent(copy));
        endEm(pm);
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.enhance.common.apps.SubclassClone

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.