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

Examples of org.apache.openjpa.persistence.jdbc.common.apps.EntityWithFailedExternalizer$TestExternal


    public void testCreate(){
        EntityManager em = emf.createEntityManager();
        EntityTransaction tx = em.getTransaction();
       
        tx.begin();
        EntityWithFailedExternalizer item1 = new EntityWithFailedExternalizer(1001, "MyName1", "description1");
        EntityWithFailedExternalizer item2 = new EntityWithFailedExternalizer(1002, "MyName2", "description2");
        item1.getExt().throwEx=true;
        EntityWithFailedExternalizer item3 = new EntityWithFailedExternalizer(1003, "MyName3", "description3")
       
        em.persist(item1);
        em.persist(item2);
        em.persist(item3);
        commitAndValidate(tx);
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.jdbc.common.apps.EntityWithFailedExternalizer$TestExternal

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.