Package org.hibernate.envers.test.performance.complex

Examples of org.hibernate.envers.test.performance.complex.RootEntity


            newEntityManager();
            EntityManager entityManager = getEntityManager();

            entityManager.getTransaction().begin();

            RootEntity re = new RootEntity();
            re.setId(idCounter++);
            re.setData1("data1");
            re.setData2("data2");
            re.setDate1(new Date());
            re.setNumber1(123);
            re.setNumber2(456);
            re.setChild1(createChildEntity1());
            re.setChild2(createChildEntity1());
            re.setChild3(createChildEntity1());

            start();
            entityManager.persist(re);           
            entityManager.getTransaction().commit();
            stop();
View Full Code Here

TOP

Related Classes of org.hibernate.envers.test.performance.complex.RootEntity

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.