Package org.conserve

Examples of org.conserve.PersistenceManager.refresh()


    // alter the original object
    so.setName("altered");
    // save the altered object
    persistOne.saveObject(so);
    // update the copy
    SimpleObject copy2 = persistTwo.refresh(copy);
    // make sure the change has propagated
    assertEquals(so.getName(), copy.getName());
    assertEquals(copy.getName(), copy2.getName());
    assertEquals(copy, copy2);
  }
View Full Code Here


    // alter the original object
    layer3.getLayer1().setName("altered");
    // save the altered object
    persistOne.saveObject(layer3);
    // update the copy
    persistTwo.refresh(copy);
    // make sure the change has propagated
    assertEquals(layer3.getLayer1().getName(), copy.getLayer1().getName());
  }

  /**
 
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.