Examples of CollectionFieldPersistenceEntity


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

            "id"
        }, new Object[] {
            new Integer(5)
        });

        CollectionFieldPersistenceEntity o1 = getEntityManager().find(
                CollectionFieldPersistenceEntity.class,
                new Integer(5));
        assertNotNull(o1);
        assertNotNull(o1.getCollection());
        assertTrue(o1.getCollection().isEmpty());
    }
View Full Code Here

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

                "id", "entity_id"
        }, new Object[] {
                new Integer(4), new Integer(5)
        });

        CollectionFieldPersistenceEntity o1 = getEntityManager().find(
                CollectionFieldPersistenceEntity.class,
                new Integer(5));
        assertNotNull(o1);
        assertNotNull(o1.getCollection());
        assertFalse(o1.getCollection().isEmpty());
    }
View Full Code Here

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

        getEntityManager().getTransaction().commit();
    }

    // TODO: andrus 8/30/2006 - fails
    public void _testCollectionTypesProperties() {
        CollectionFieldPersistenceEntity o1 = new CollectionFieldPersistenceEntity();
        o1.setCollection(Collections.singleton(new HelperEntity1()));
        o1.setSet(Collections.singleton(new HelperEntity2()));
        o1.setList(Collections.singletonList(new HelperEntity3()));

        getEntityManager().persist(o1);
        getEntityManager().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.