Package org.apache.openjpa.persistence.kernel.common.apps

Examples of org.apache.openjpa.persistence.kernel.common.apps.FetchA


    fp.clearFetchGroups();
    fp.clearFields();
    fp.addField(FetchA.class, "b");
    fp.addField(FetchBase.class, "text");

    FetchA a = (FetchA) em.createQuery(JPQL).getSingleResult();
    em.close();

    FetchB  b = a.getB();
    assertNotNull(b);
    assertEquals("a1", a.getText());
    assertEquals("b1", b.getText());
  }
View Full Code Here


    fp.clearFetchGroups();
    fp.clearFields();
    fp.addField(FetchA.class.getName() + ".b");
    fp.addField(FetchB.class.getName() + ".text");

    FetchA a = (FetchA) em.createQuery(JPQL).getSingleResult();
    em.close();

    FetchB  b = a.getB();
    assertNotNull(b);
    assertNull(a.getText());
    assertEquals("b1", b.getText());
  }
View Full Code Here

    fp.clearFetchGroups();
    fp.clearFields();
    fp.addField(FetchA.class.getName() + ".b");
    fp.addField(FetchA.class.getName() + ".text");

    FetchA a = (FetchA) em.createQuery(JPQL).getSingleResult();
    em.close();

    FetchB  b = a.getB();
    assertNotNull(b);
    assertEquals("a1", a.getText());
    assertNull(b.getText());
  }
View Full Code Here

    fp.clearFetchGroups();
    fp.clearFields();
    fp.addField(FetchA.class.getName() + ".b");
    fp.addField(FetchBase.class.getName() + ".text");

    FetchA a = (FetchA) em.createQuery(JPQL).getSingleResult();
    em.close();

    FetchB  b = a.getB();
    assertNotNull(b);
    assertEquals("a1", a.getText());
    assertEquals("b1", b.getText());
  }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.kernel.common.apps.FetchA

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.