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

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


   
    //make sure no exception is thrown here.
    public void testpcNewObjectIdInstanceMethod(){
        EntityManager em = emf.createEntityManager();
        try{
            IDOwningClassTestEntity e = new IDOwningClassTestEntity();
            em.getTransaction().begin();
            em.persist(e);
            em.getTransaction().commit();
            assertTrue(em.createQuery("select count(c) from IDOwningClassTestEntity c", Long.class)
                    .getSingleResult().longValue() > 0);                   
View Full Code Here

TOP

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

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.