Package com.google.code.gaeom

Examples of com.google.code.gaeom.ObjectStore.register()


 
  @Test
  public void testNameRegistration()
  {
    ObjectStore os = ObjectStore.Factory.create();
    os.register("Foo", Foo.class);

    ObjectStoreSession oss = os.beginSession();
    oss.store(new Foo("Fred Flintstone")).now();
    oss.store(new Foo("Barney Rubble")).now();
View Full Code Here


    b2.x = "Schmoo";
    b2.z = "Blah";
    a.bs.add(b2);
   
    ObjectStore os = ObjectStore.Factory.create();
    os.register(B1.class.getSimpleName(), B1.class);
    os.register(B2.class.getSimpleName(), B2.class);
    Key key = os.beginSession().store(a).now();
   
    A a2 = os.beginSession().load(key).now();
    assertEquals(a, a2);
View Full Code Here

    b2.z = "Blah";
    a.bs.add(b2);
   
    ObjectStore os = ObjectStore.Factory.create();
    os.register(B1.class.getSimpleName(), B1.class);
    os.register(B2.class.getSimpleName(), B2.class);
    Key key = os.beginSession().store(a).now();
   
    A a2 = os.beginSession().load(key).now();
    assertEquals(a, a2);
   
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.