Examples of Entity2


Examples of org.apache.cayenne.profile.entity.Entity2

            DataContext context,
            HttpServletRequest request,
            HttpServletResponse response) {

        for (int i = 600; i < 850; i++) {
            Entity2 o1 = (Entity2) DataObjectUtils.objectForPK(
                    context,
                    Entity2.class,
                    i * 2);
            Entity2 o2 = (Entity2) DataObjectUtils.objectForPK(
                    context,
                    Entity2.class,
                    i * 2 + 1);

            List e3s1 = o1.getEntity3s();
View Full Code Here

Examples of org.apache.cayenne.profile.entity.Entity2

            DataContext context,
            HttpServletRequest request,
            HttpServletResponse response) {

        for (int i = 0; i < 500; i++) {
            Entity2 e = (Entity2) context.newObject(Entity2.class);
            e.setName("Name_" + i);
           
            Entity3 e31 = (Entity3) context.newObject(Entity3.class);
            e31.setName("E31_" + i);
            e31.setEntity2(e);
View Full Code Here

Examples of org.apache.openjpa.persistence.cache.common.apps.Entity2

        startTx(em);

        //create and persist multiple entity1 instances
        for (int i = 0; i < instNum; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }

        endTx(em);
View Full Code Here

Examples of org.apache.openjpa.persistence.common.apps.Entity2

        startTx(em);

        //create and persist multiple entity1 instances
        for (int i = 0; i < instNum; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }

        endTx(em);
View Full Code Here

Examples of org.apache.openjpa.persistence.common.apps.Entity2

        startTx(em);

        //create and persist multiple entity1 instances
        for (int i = 0; i < instNum; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }

        endTx(em);
View Full Code Here

Examples of org.apache.openjpa.persistence.query.common.apps.Entity2

        startTx(em);

        //create and persist multiple entity1 instances
        for (int i = 0; i < instNum; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }

        endTx(em);
View Full Code Here

Examples of org.apache.openjpa.persistence.query.common.apps.Entity2

        startTx(em);

        //create and persist multiple entity1 instances
        for (int i = 0; i < instNum; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }

        endTx(em);
View Full Code Here

Examples of org.apache.openjpa.persistence.query.common.apps.Entity2

        startTx(em);

        //create and persist multiple entity1 instances
        for (int i = 0; i < instNum; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }

        endTx(em);
View Full Code Here

Examples of org.apache.openjpa.persistence.querycache.common.apps.Entity2

       
        em.getTransaction().begin();
        //create and persist multiple entity1 instances
        for (int i = 0; i < 10; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }
        em.getTransaction().commit();
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.querycache.common.apps.Entity2

       
        em.getTransaction().begin();
        //create and persist multiple entity1 instances
        for (int i = 0; i < 10; i++) {
            Entity1 ent = new Entity1(i, "string" + i, i + 2);
            Entity2 ent2 = new Entity2(i * 2, "ent2" + i, i);
            ent.setEntity2Field(ent2);
            em.persist(ent);
        }
        em.getTransaction().commit();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.