Examples of addToTargets()


Examples of org.apache.cayenne.testdo.mt.ClientMtMapToMany.addToTargets()

        ClientMtMapToManyTarget newTarget = o1
                .getObjectContext()
                .newObject(ClientMtMapToManyTarget.class);

        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertSame(o1, newTarget.getMapToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.mt.ClientMtMapToMany.addToTargets()

        assertEquals(3, targets.size());

        ClientMtMapToManyTarget newTarget = o1.getObjectContext().newObject(
                ClientMtMapToManyTarget.class);

        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertSame(o1, newTarget.getMapToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.CollectionToMany.addToTargets()

        CollectionToManyTarget newTarget = o1
                .getObjectContext()
                .newObject(CollectionToManyTarget.class);

        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertTrue(o1.getTargets().contains(newTarget));
        assertSame(o1, newTarget.getCollectionToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.CollectionToMany.addToTargets()

        CollectionToManyTarget newTarget = o1
                .getObjectContext()
                .newObject(CollectionToManyTarget.class);

        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertTrue(o1.getTargets().contains(newTarget));
        assertSame(o1, newTarget.getCollectionToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.CollectionToMany.addToTargets()

        assertEquals(3, targets.size());

        CollectionToManyTarget newTarget = o1.getObjectContext().newObject(
                CollectionToManyTarget.class);

        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertTrue(o1.getTargets().contains(newTarget));
        assertSame(o1, newTarget.getCollectionToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.MapToMany.addToTargets()

        MapToManyTarget newTarget = o1.getObjectContext().newObject(
                MapToManyTarget.class);

        newTarget.setName("X");
        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertSame(newTarget, o1.getTargets().get("X"));
        assertSame(o1, newTarget.getMapToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.MapToMany.addToTargets()

        MapToManyTarget newTarget = o1.getObjectContext().newObject(
                MapToManyTarget.class);

        newTarget.setName("X");
        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertSame(newTarget, o1.getTargets().get("X"));
        assertSame(o1, newTarget.getMapToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.MapToMany.addToTargets()

        MapToManyTarget newTarget = o1
                .getObjectContext()
                .newObject(MapToManyTarget.class);

        newTarget.setName("X");
        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertSame(newTarget, o1.getTargets().get("X"));
        assertSame(o1, newTarget.getMapToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.SetToMany.addToTargets()

        assertEquals(3, targets.size());

        SetToManyTarget newTarget = o1.getObjectContext().newObject(
                SetToManyTarget.class);

        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertTrue(o1.getTargets().contains(newTarget));
        assertSame(o1, newTarget.getSetToMany());

        o1.getObjectContext().commitChanges();
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.SetToMany.addToTargets()

        assertEquals(3, targets.size());

        SetToManyTarget newTarget = o1.getObjectContext().newObject(
                SetToManyTarget.class);

        o1.addToTargets(newTarget);
        assertEquals(4, targets.size());
        assertTrue(o1.getTargets().contains(newTarget));
        assertSame(o1, newTarget.getSetToMany());

        o1.getObjectContext().commitChanges();
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.