Examples of BidiOneToManyOwner


Examples of org.apache.cayenne.jpa.itest.ch2.entity.BidiOneToManyOwner

        BidiOneToManyOwned owned = getEntityManager().find(BidiOneToManyOwned.class, 5);
        assertNotNull(owned);
        assertEquals(1, owned.getOwners().size());

        BidiOneToManyOwner owner = getEntityManager().find(BidiOneToManyOwner.class, 4);
        assertNotNull(owner);
        assertTrue(owned.getOwners().contains(owner));
       
        BidiOneToManyOwner owner1 = getEntityManager().find(BidiOneToManyOwner.class, 5);
        assertNotNull(owner1);
        assertFalse(owned.getOwners().contains(owner1));
    }
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.