Examples of PropertyEmbeddedEntity


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

    }

    public void testPropertyEmbeddable() throws Exception {
        getDbHelper().deleteAll("PropertyEmbeddedEntity");

        PropertyEmbeddedEntity o1 = new PropertyEmbeddedEntity();
        PropertyEmbeddable o2 = new PropertyEmbeddable();
        o2.setProperty1("p1");
        o1.setEmbeddable(o2);

        getEntityManager().persist(o1);
        getEntityManager().getTransaction().commit();

        assertEquals("p1", getDbHelper().getObject("PropertyEmbeddedEntity", "property1"));
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.