Examples of CallbackEntity2


Examples of org.apache.cayenne.jpa.itest.ch3.entity.CallbackEntity2

        // for flush or commit.
        em.persist(e);
        assertTrue(e.isPrePersistCalled());

        // entity with same callback method handling multiple callbacks
        CallbackEntity2 e2 = new CallbackEntity2();
        assertFalse(e2.isMixedCallbackCalled());
        em.persist(e2);
        assertTrue(e2.isMixedCallbackCalled());

        // external listeners
        EntityListenerState.reset();
        assertEquals("", EntityListenerState.getPrePersistCalled());
        ListenerEntity1 e3 = new ListenerEntity1();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.