Package org.hibernate.test.perf.object

Examples of org.hibernate.test.perf.object.B


    private void makeObjects(Session session) {
        A a = new A();
        a.setA(-1);
        a.setMap(new HashMap());
        for (int i = 0; i < 50; i++) {
            B b = new B();
            b.setB(i);
            b.setList(new ArrayList());
            a.getMap().put(new Integer(i), b);
            for (int j = 0; j < 10; j++) {
                C c = new C();
                c.setC(j * 1000000);
                b.getList().add(c);
            }
        }
        long time = System.currentTimeMillis();
        session.save(a);
        System.out.println("Save took " + ((System.currentTimeMillis() - time)) + " ms");
View Full Code Here

TOP

Related Classes of org.hibernate.test.perf.object.B

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.