Package org.objectweb.speedo.pobjects.fetchgroup

Examples of org.objectweb.speedo.pobjects.fetchgroup.Person


   */
  public void testRefreshReference() {
    logger.log(BasicLevel.DEBUG, "***************testRefreshReference*****************");
    Country country = new Country("it","Italie");
    Address address = new Address("Rue Spiaggi", "Milan", country);
    Person parent = new Person();
    parent.setName("Del Piero Joel");
    parent.setAge(32);
    parent.setAddress(address);
    Person child1 = new Person("Del Piero Sophie", address, null, 14);
    Person child2 = new Person("Del Piero Mikael", address, null, 11);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
    PersistenceManager pm = pmf.getPersistenceManager();
View Full Code Here


   */
  public void testRefreshArrayElement() {
    logger.log(BasicLevel.DEBUG, "************testRefreshArrayElement**************");
    Country country = new Country("be","Belgique");
    Address address = new Address("Rue Anvers", "Bruges", country);
    Person parent = new Person();
    parent.setName("Dermuck Joel");
    parent.setAge(32);
    parent.setAddress(address);
    int ageChild1 = 14;
    int ageChil2 = 11;
    Person child1 = new Person("Dermuck Sophie", address, null, ageChild1);
    Person child2 = new Person("Dermuck Mikael", address, null, ageChil2);
    int totalAgeChildren = 14 + 11;
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.clearGroups();
    fp.addGroup("detail+children-names").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
    logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
    try{
      pm.currentTransaction().begin();
      //update the first child age and address
      Person p = (Person) parent.getChildren().iterator().next();
      p.setAge(2000);
      Address newAddress = new Address("Rue Refresh", "Moon", new Country("m", "mars"));
      p.setAddress(newAddress);
      pm.refresh(parent);
   
      int totalAgeRefreshed = 0;
      Iterator it = parent.getChildren().iterator();
      Person ch = null;
      while (it.hasNext()) {
        ch = (Person) it.next();
        totalAgeRefreshed += ch.getAge();
        assertEquals(address.getCity(), ch.getAddress().getCity());
        assertEquals(address.getStreet(), ch.getAddress().getStreet());
      }
      pm.currentTransaction().commit();
      assertEquals(totalAgeChildren, totalAgeRefreshed);
    } catch (Exception e) {
      if (pm.currentTransaction().isActive())
View Full Code Here

   */
  public void testRefreshFetchGroupField() {
    logger.log(BasicLevel.DEBUG, "************testRefreshFetchGroupField**************");
    Country country = new Country("us","Etats-Unis");
    Address address = new Address("Rue Enclif", "San Diego", country);
    Person parent = new Person();
    parent.setName("Smith Joel");
    parent.setAge(32);
    parent.setAddress(address);
    Person child1 = new Person("Smith Sofia", address, null, 14);
    Person child2 = new Person("Smith Michael", address, null, 11);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.clearGroups();
    fp.addGroup("detail+children-list").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
    logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
    try{
      pm.currentTransaction().begin();
      //  update the first child age and address
      Person p = (Person) parent.getChildren().iterator().next();
      p.setAge(2000);
      Address newAddress = new Address("Rue Far", "Moon", new Country("n", "neptune"));
      p.setAddress(newAddress);
      pm.refresh(parent);
   
      pm.currentTransaction().commit();
      Person ch = (Person) parent.getChildren().iterator().next();
      int expectedAge  = 0;
      if (ch.getName().equals(child1.getName())) {
        expectedAge = child1.getAge();
      } else {
        expectedAge = child2.getAge();
      }
      assertEquals(expectedAge, ch.getAge());
      assertEquals(address.getCity(), ch.getAddress().getCity());
      assertEquals(address.getStreet(), ch.getAddress().getStreet());
    } catch (Exception e) {
      if (pm.currentTransaction().isActive())
        pm.currentTransaction().rollback();
      fail(e.getMessage());
    } finally {
View Full Code Here

   */
  public void testRefreshRecursiveDepth() {
    logger.log(BasicLevel.DEBUG, "************testRefreshRecursiveDepth**************");
    Country country = new Country("sp","Espagne");
    Address address = new Address("Rue Rio", "Santander", country);
    Person parent = new Person();
    parent.setName("Casillas Joel");
    parent.setAge(63);
    parent.setAddress(address);
    Person child1 = new Person("Casillas Sofia", address, null, 30);
    Person child2 = new Person("Casillas Michael", address, null, 40);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
    Person child11 = new Person("Casillas Maria", address, null, 14);
    Person child21 = new Person("Casillas Juan", address, null, 11);
    Set children1 = new HashSet();
    children1.add(child11);
    Set children2 = new HashSet();
    children2.add(child21);
    child1.setChildren(children1);
    child2.setChildren(children2);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.clearGroups();
    fp.addGroup("detailChildren").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
    logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
    try{
      Address a = new Address("Rue So", "Moon", new Country("k", "Krypton"));
   
      pm.currentTransaction().begin();
      Person p = (Person) parent.getChildren().iterator().next();
      p.setAge(2000);
      p.setAddress(a);
      Person pc = (Person) p.getChildren().iterator().next();
      pc.setAge(3000);
      pc.setAddress(a);
      pm.refresh(parent);
      logger.log(BasicLevel.DEBUG, "Warning: the child of child will not be refreshed.");
      pm.currentTransaction().commit();
     
      Person ch = (Person) parent.getChildren().iterator().next();
      int expectedAge = 0;
      if (ch.getName().equals(child1.getName())) {
        expectedAge = child1.getAge();
      } else {
        expectedAge = child2.getAge();
      }
      assertEquals(expectedAge, ch.getAge());
      assertEquals(address.getCity(), ch.getAddress().getCity());
      ch = (Person) ch.getChildren().iterator().next();
      assertEquals(3000, ch.getAge());
      assertEquals("Moon", ch.getAddress().getCity());
    } catch (Exception e) {
      if (pm.currentTransaction().isActive())
        pm.currentTransaction().rollback();
      fail(e.getMessage());
    } finally {
View Full Code Here

   */
  public void testRefreshDoubleDepth() {
    logger.log(BasicLevel.DEBUG, "************testRefreshDoubleDepth**************");
    Country country = new Country("bl","Belarus");
    Address address = new Address("Rue Kaloc", "Minsk", country);
    Person parent = new Person();
    parent.setName("Castuk Joel");
    parent.setAge(63);
    parent.setAddress(address);
    Person child1 = new Person("Castuk Sofia", address, null, 40);
    Person child2 = new Person("Castuk Michael", address, null, 40);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
    Person child11 = new Person("Castuk Maria", address, null, 11);
    Person child21 = new Person("Castuk Juan", address, null, 11);
    Set children1 = new HashSet();
    children1.add(child11);
    Set children2 = new HashSet();
    children2.add(child21);
    child1.setChildren(children1);
    child2.setChildren(children2);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.clearGroups();
    fp.addGroup("detailChildren2").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
    logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
    try{
      pm.currentTransaction().begin();
      Address a = new Address("Rue Away", "Moon", new Country("pl", "Pluton"));
      Person p = (Person) parent.getChildren().iterator().next();
      p.setAge(2000);
      p.setAddress(a);
      Person pc = (Person) p.getChildren().iterator().next();
      pc.setAge(3000);
      pc.setAddress(a);
      pm.refresh(parent);
      pm.currentTransaction().commit();

      Person ch = (Person) parent.getChildren().iterator().next();
      assertEquals(40, ch.getAge());
      assertEquals(address.getCity(), ch.getAddress().getCity());
      ch = (Person) ch.getChildren().iterator().next();
      assertEquals(11, ch.getAge());
      assertEquals(address.getCity(), ch.getAddress().getCity());
    } catch(Exception e) {
      if (pm.currentTransaction().isActive())
        pm.currentTransaction().rollback();
      fail(e.getMessage());
    } finally {
View Full Code Here

  public void testRefreshDoubleDepthUnlimited() {
    logger.log(BasicLevel.DEBUG, "************testRefreshDoubleDepthUnlimited**************");
   
    Country country = new Country("p","Portugal");
    Address address = new Address("Rue Christiano", "Lisbonne", country);
    Person grandParent = new Person();
    grandParent.setName("Simoes Joel");
    grandParent.setAge(90);
    grandParent.setAddress(address);
    Person parent1 = new Person("Simoes Sofia", address, null, 70);
    Person parent2 = new Person("Simoes Michael", address, null, 70);
    Set parent = new HashSet();
    parent.add(parent1);
    parent.add(parent2);
    grandParent.setChildren(parent);
    Person child1 = new Person("Simoes Maria", address, null, 40);
    Person child2 = new Person("Simoes Juan", address, null, 40);
    Set children1 = new HashSet();
    children1.add(child1);
    Set children2 = new HashSet();
    children2.add(child2);
    parent1.setChildren(children1);
    parent2.setChildren(children2);
    Person grandChild1 = new Person("Simoes Leia", address, null, 10);
    Person grandChild2 = new Person("Simoes Carlos", address, null, 10);
    Set grandChildren1 = new HashSet();
    grandChildren1.add(grandChild1);
    Set grandChildren2 = new HashSet();
    grandChildren2.add(grandChild2);
    child1.setChildren(grandChildren1);
    child2.setChildren(grandChildren2);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.clearGroups();
    fp.addGroup("detailChildren3").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + grandParent.toString());
    pm.makePersistent(grandParent);
    pm.currentTransaction().commit();
    logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
   
    try {
      pm.currentTransaction().begin();
      Address a = new Address("Rue From", "Moon", new Country("sl", "Solarus"));
      Person pParent = (Person) grandParent.getChildren().iterator().next();
      pParent.setAge(2000);
      pParent.setAddress(a);
      Person pChild = (Person) pParent.getChildren().iterator().next();
      pChild.setAge(3000);
      pChild.setAddress(a);
      Person pGrandChild = (Person) pChild.getChildren().iterator().next();
      pGrandChild.setAge(4000);
      pGrandChild.setAddress(a);
      pm.refresh(grandParent);
      pm.currentTransaction().commit();
     
      Person cParent = (Person) grandParent.getChildren().iterator().next();
      assertEquals(70, cParent.getAge());
      assertEquals(address.getCity(), cParent.getAddress().getCity());
      Person cChild = (Person) cParent.getChildren().iterator().next();
      assertEquals(40, cChild.getAge());
      assertEquals(address.getCity(), cChild.getAddress().getCity());
      Person cGrandChild = (Person) cChild.getChildren().iterator().next();
      assertEquals(10, cGrandChild.getAge());
      assertEquals(address.getCity(), cGrandChild.getAddress().getCity());
     
    } catch(Exception e) {
      if (pm.currentTransaction().isActive())
        pm.currentTransaction().rollback();
      fail(e.getMessage());
View Full Code Here

   */
  public void testLoadingDoubleDepth() {
    logger.log(BasicLevel.DEBUG, "************testLoadingDoubleDepth**************");
    Country country = new Country("bl","Belarus");
    Address address = new Address("Rue Kaloc", "Minsk", country);
    Person parent = new Person();
    parent.setName("Castuk Joel");
    parent.setAge(63);
    parent.setAddress(address);
    Person child1 = new Person("Castuk Sofia", address, null, 30);
    Person child2 = new Person("Castuk Michael", address, null, 40);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
    Person child11 = new Person("Castuk Maria", address, null, 14);
    Person child21 = new Person("Castuk Juan", address, null, 11);
    Set children1 = new HashSet();
    children1.add(child11);
    Set children2 = new HashSet();
    children2.add(child21);
    child1.setChildren(children1);
    child2.setChildren(children2);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.clearGroups();
    fp.addGroup("detailChildren2").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
    logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
   
    try{
      pm.currentTransaction().begin();
      Person detachedParent = (Person) pm.detachCopy(parent);
      assertEquals(parent.getName(), detachedParent.getName());
      assertEquals(parent.getAge(), detachedParent.getAge());
      assertEquals(parent.getAddress().getCity(), detachedParent.getAddress().getCity());
      assertEquals(parent.getAddress().getCountry().getCode(), detachedParent.getAddress().getCountry().getCode());
      assertEquals(parent.getAddress().getCountry().getName(), detachedParent.getAddress().getCountry().getName());
      assertEquals(parent.getAddress().getStreet(), detachedParent.getAddress().getStreet());
      assertEquals(parent.getChildren().size(), detachedParent.getChildren().size());
      logger.log(BasicLevel.DEBUG, "Name can be accessed: " + detachedParent.getName());
      logger.log(BasicLevel.DEBUG, "Age can be accessed: " + detachedParent.getAge());
      logger.log(BasicLevel.DEBUG, "Address can be accessed: " +
          detachedParent.getAddress().getStreet() + ", " + detachedParent.getAddress().getCity()
          + ", " + detachedParent.getAddress().getCountry().getCode());
      Collection childrenTmp = detachedParent.getChildren();
      logger.log(BasicLevel.DEBUG, "Children names and address.country.code can be accessed: ");
      Iterator it = childrenTmp.iterator();
      while(it.hasNext()){
        Person p = (Person) it.next();
        logger.log(BasicLevel.DEBUG, "Child: " + p.getName() + ", " + p.getAge() + ", " + p.getAddress().getStreet() + ", " + p.getAddress().getCity()
            + ", " + p.getAddress().getCountry().getCode());
      }
      it = childrenTmp.iterator();
      while(it.hasNext()){
        Person p = (Person) it.next();
        Iterator it2 = p.getChildren().iterator();
        while(it2.hasNext()){
          Person person = (Person) it2.next();
          logger.log(BasicLevel.DEBUG, "\tChild of children " + person.getName() + ", " + person.getAge() + ", " + person.getAddress().getStreet() + ", " + person.getAddress().getCity()
              + ", " + person.getAddress().getCountry().getCode());
        }
      }
      it = childrenTmp.iterator();
      while(it.hasNext()){
        Person p = (Person) it.next();
        Iterator it2 = p.getChildren().iterator();
        while(it2.hasNext()){
          Person person = (Person) it2.next();
          Iterator it3 = person.getChildren().iterator();
          while(it3.hasNext()){
            Person pf = (Person) it3.next();
            logger.log(BasicLevel.DEBUG, "\t\tChild: " + pf.toString());
          }
        }
      }
    } catch(Exception e){
      assertEquals("Supposed to be a " + JDODetachedFieldAccessException.class.getName(), JDODetachedFieldAccessException.class, e.getClass());
View Full Code Here

   */
  public void testLoadingDoubleDepthUnlimited() {
    logger.log(BasicLevel.DEBUG, "************testLoadingDoubleDepthUnlimited**************");
    Country country = new Country("p","Portugal");
    Address address = new Address("Rue Christiano", "Lisbonne", country);
    Person parent = new Person();
    parent.setName("Simoes Joel");
    parent.setAge(63);
    parent.setAddress(address);
    Person child1 = new Person("Simoes Sofia", address, null, 30);
    Person child2 = new Person("Simoes Michael", address, null, 40);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
    Person child11 = new Person("Simoes Maria", address, null, 14);
    Person child21 = new Person("Simoes Juan", address, null, 11);
    Set children1 = new HashSet();
    children1.add(child11);
    Set children2 = new HashSet();
    children2.add(child21);
    child1.setChildren(children1);
    child2.setChildren(children2);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.clearGroups();
    fp.addGroup("detailChildren3").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
    logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
   
    try {
      pm.currentTransaction().begin();
      Person detachedParent = (Person) pm.detachCopy(parent);
      assertEquals(parent.getName(), detachedParent.getName());
      assertEquals(parent.getAge(), detachedParent.getAge());
      assertEquals(parent.getAddress().getCity(), detachedParent.getAddress().getCity());
      assertEquals(parent.getAddress().getCountry().getCode(), detachedParent.getAddress().getCountry().getCode());
      assertEquals(parent.getAddress().getCountry().getName(), detachedParent.getAddress().getCountry().getName());
      assertEquals(parent.getAddress().getStreet(), detachedParent.getAddress().getStreet());
      assertEquals(parent.getChildren().size(), detachedParent.getChildren().size());
      logger.log(BasicLevel.DEBUG, "Name can be accessed: " + detachedParent.getName());
      logger.log(BasicLevel.DEBUG, "Age can be accessed: " + detachedParent.getAge());
      logger.log(BasicLevel.DEBUG, "Address can be accessed: " +
          detachedParent.getAddress().getStreet() + ", " + detachedParent.getAddress().getCity()
          + ", " + detachedParent.getAddress().getCountry().getCode());
      Collection childrenTmp = detachedParent.getChildren();
      logger.log(BasicLevel.DEBUG, "Children names and address.country.code can be accessed: ");
      Iterator it = childrenTmp.iterator();
      while(it.hasNext()){
        Person p = (Person) it.next();
        logger.log(BasicLevel.DEBUG, "Child: " + p.getName() + ", " + p.getAge() + ", " + p.getAddress().getStreet() + ", " + p.getAddress().getCity()
            + ", " + p.getAddress().getCountry().getCode());
      }
      it = childrenTmp.iterator();
      while(it.hasNext()){
        Person p = (Person) it.next();
        Iterator it2 = p.getChildren().iterator();
        while(it2.hasNext()){
          Person person = (Person) it2.next();
          logger.log(BasicLevel.DEBUG, "\tChild of children " + person.toString());
        }
      }
      pm.close();
    } catch(Exception e) {
      logger.log(BasicLevel.DEBUG, "Error: " + e);
View Full Code Here

   */
  public void testLoadingAll() {
    logger.log(BasicLevel.DEBUG, "***************testLoadingAll*****************");
    Country country = new Country("it","Italie");
    Address address = new Address("Rue Spiaggi", "Milan", country);
    Person parent = new Person();
    parent.setName("Del Piero Joel");
    parent.setAge(32);
    parent.setAddress(address);
    Person child1 = new Person("Del Piero Sophie", address, null, 14);
    Person child2 = new Person("Del Piero Mikael", address, null, 11);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.addGroup("all").removeGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
   
    FetchPlan f = pm.getFetchPlan();
    logger.log(BasicLevel.DEBUG, "FG: " + f.getGroups());
   
    try{
      pm.currentTransaction().begin();
      Person detachedParent = (Person) pm.detachCopy(parent);
      logger.log(BasicLevel.DEBUG, "All fields can be accessed: " + detachedParent.toString());
      assertEquals(parent.getName(), detachedParent.getName());
      assertEquals(parent.getAge(), detachedParent.getAge());
      assertEquals(parent.getAddress().getCity(), detachedParent.getAddress().getCity());
      assertEquals(parent.getAddress().getCountry().getCode(), detachedParent.getAddress().getCountry().getCode());
      assertEquals(parent.getAddress().getCountry().getName(), detachedParent.getAddress().getCountry().getName());
      assertEquals(parent.getAddress().getStreet(), detachedParent.getAddress().getStreet());
      assertEquals(parent.getChildren().size(), detachedParent.getChildren().size());
    }
    catch(Exception e){
        logger.log(BasicLevel.DEBUG, "Error: " + e);
    } finally {
      if (pm.currentTransaction().isActive())
View Full Code Here

   */
  public void testLoadingDefault() {
    logger.log(BasicLevel.DEBUG, "***************testLoadingDefault*****************");
    Country country = new Country("fr","France");
    Address address = new Address("rue Anatole France", "Tours", country);
    Person parent = new Person();
    parent.setName("Bordes Joel");
    parent.setAge(32);
    parent.setAddress(address);
    Person child1 = new Person("Bordes Sophie", address, null, 14);
    Person child2 = new Person("Bordes Mikael", address, null, 11);
    Set children = new HashSet();
    children.add(child1);
    children.add(child2);
    parent.setChildren(children);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.removeGroup("all").addGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
   
    FetchPlan f = pm.getFetchPlan();
    logger.log(BasicLevel.DEBUG, "FG: " + f.getGroups());
   
    try{   
      pm.currentTransaction().begin();
      Person detachedParent = (Person) pm.detachCopy(parent);
      logger.log(BasicLevel.DEBUG, "Name can be accessed: " + detachedParent.getName());
      logger.log(BasicLevel.DEBUG, "Age can be accessed: " + detachedParent.getAge());
      logger.log(BasicLevel.DEBUG, "Address can be accessed: " + detachedParent.getAddress().toString());
      assertEquals(parent.getName(), detachedParent.getName());
      assertEquals(parent.getAge(), detachedParent.getAge());
      assertEquals(parent.getAddress().getCity(), detachedParent.getAddress().getCity());
      assertEquals(parent.getAddress().getCountry().getCode(), detachedParent.getAddress().getCountry().getCode());
      assertEquals(parent.getAddress().getCountry().getName(), detachedParent.getAddress().getCountry().getName());
      assertEquals(parent.getAddress().getStreet(), detachedParent.getAddress().getStreet());
      logger.log(BasicLevel.DEBUG, "Children should not be accessed: " + detachedParent.getChildren());
    }
    catch(Exception e){
      assertEquals(e.getClass(), JDODetachedFieldAccessException.class);
      pm.close();
      if (e instanceof JDODetachedFieldAccessException)
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.pobjects.fetchgroup.Person

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.