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

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


     */
    public void testNoClone() {
        OpenJPAEntityManager pm =
            (OpenJPAEntityManager) currentEntityManager();
        startTx(pm);
        NoClone orig = new NoClone("test");
        pm.persist(orig);
        endTx(pm);
        pm.refresh(orig);
        NoClone copy = orig.safeClone();
        assertEquals("test", copy.getString());
        assertTrue(pm.isPersistent(orig));
        assertFalse(pm.isPersistent(copy));
        endEm(pm);
    }
View Full Code Here

TOP

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

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.