Package com.google.appengine.datanucleus.test.jpa.SingleTableInheritanceJPA

Examples of com.google.appengine.datanucleus.test.jpa.SingleTableInheritanceJPA.ChildToParentWithoutDiscriminator


  }
 
  public void testMissingDiscriminator() {
    switchDatasource(getEntityManagerFactoryName());
    beginTxn();
    em.persist(new ChildToParentWithoutDiscriminator());
    try {
      commitTxn();
      fail("expected exeception");
    } catch (Exception e) {
      // good
View Full Code Here


  }
   
  public void testMissingDiscriminator_NoTxn() {
    switchDatasource(getEntityManagerFactoryName());
    try {
      em.persist(new ChildToParentWithoutDiscriminator());
      em.close();
      fail("expected exeception");
    } catch (Exception e) {
      // good
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jpa.SingleTableInheritanceJPA.ChildToParentWithoutDiscriminator

Copyright © 2018 www.massapicom. 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.