Examples of IdMapToMany


Examples of org.apache.cayenne.testdo.relationship.IdMapToMany

    }

    public void testReadToManyId() throws Exception {
        createTestData("prepare-id");

        IdMapToMany o1 = Cayenne.objectForPK(
                createDataContext(),
                IdMapToMany.class,
                1);

        Map targets = o1.getTargets();

        assertTrue(((ValueHolder) targets).isFault());

        assertNotNull(targets);
        assertEquals(3, targets.size());
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.IdMapToMany

    }

    public void testReadToManyId() throws Exception {
        createTestData("prepare-id");

        IdMapToMany o1 = DataObjectUtils.objectForPK(
                createDataContext(),
                IdMapToMany.class,
                1);

        Map targets = o1.getTargets();

        assertTrue(((ValueHolder) targets).isFault());

        assertNotNull(targets);
        assertEquals(3, targets.size());
View Full Code Here

Examples of org.apache.cayenne.testdo.relationship.IdMapToMany

    }

    public void testReadToManyId() throws Exception {
        createTestIdDataSet();

        IdMapToMany o1 = Cayenne.objectForPK(context, IdMapToMany.class, 1);

        Map targets = o1.getTargets();

        assertTrue(((ValueHolder) targets).isFault());

        assertNotNull(targets);
        assertEquals(3, targets.size());
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.