Examples of NonEntity


Examples of org.apache.cayenne.jpa.itest.ch3.entity.NonEntity

        assertEquals(1, getDbHelper().getRowCount("SimpleEntity"));
    }

    public void testPersistNonEntity() throws Exception {
        try {
            getEntityManager().persist(new NonEntity());
            fail("Must have thrown IllegalARgumentException on non entity");
        }
        catch (IllegalArgumentException e) {
            // expected
        }
View Full Code Here

Examples of org.apache.cayenne.jpa.itest.ch3.entity.NonEntity

    }

    public void testMergeNonEntity() throws Exception {

        try {
            getEntityManager().merge(new NonEntity());
            fail("must have thrown IllegalArgumentException on merging a non entity.");
        }
        catch (IllegalArgumentException e) {
            // expected
        }
View Full Code Here

Examples of org.apache.cayenne.jpa.itest.ch3.entity.NonEntity

        assertEquals(0, getDbHelper().getRowCount("SimpleEntity"));
    }

    public void testRemoveNonEntity() throws Exception {
        try {
            getEntityManager().remove(new NonEntity());
            fail("Must have thrown IllegalArgumentException on non entity");
        }
        catch (IllegalArgumentException e) {
            // expected
        }
View Full Code Here

Examples of org.hibernate.metamodel.domain.NonEntity

          parent = new Superclass( entityClass.getName(), parent );
        }
        // for classes which are not annotated at all we create the NonEntity domain class
        // todo - not sure whether this is needed. It might be that we don't need this information (HF)
        else {
          parent = new NonEntity( entityClass.getName(), parent );
        }
      }
    }
  }
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.