Package org.apache.cayenne.jpa.itest.ch5.entity

Examples of org.apache.cayenne.jpa.itest.ch5.entity.RLEntity1


        EntityManager entityManager = ItestSetup
                .getInstance()
                .createContainerManagedEntityManager();

        SimpleEntity e = new SimpleEntity();
        e.setProperty1("XXX");
        entityManager.persist(e);
        tm.commit();

        assertEquals(1, getDbHelper().getRowCount("SimpleEntity"));
    }
View Full Code Here


        EntityManager entityManager = ItestSetup
                .getInstance()
                .createContainerManagedEntityManager();

        SimpleEntity e = new SimpleEntity();
        e.setProperty1("XXX");

        assertFalse(OpenEJBContainer.getContainer().isActiveTransaction());

        // throws TransactionRequiredException if invoked on a
        // container-managed entity manager of type
View Full Code Here

TOP

Related Classes of org.apache.cayenne.jpa.itest.ch5.entity.RLEntity1

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.