Package com.googlecode.objectify.test.LoadParentRefTests

Examples of com.googlecode.objectify.test.LoadParentRefTests.Father


  public void testParentExists() throws Exception
  {
    fact().register(Father.class);
    fact().register(Child.class);

    Father f = new Father();
    f.foo = "foo";
    ofy().save().entity(f).now();

    Child ch = new Child();
    ch.father = Ref.create(Key.create(f));
View Full Code Here


  public void testParentWithGroup() throws Exception
  {
    fact().register(Father.class);
    fact().register(ChildWithGroup.class);

    Father f = new Father();
    f.foo = "foo";
    ofy().save().entity(f).now();

    ChildWithGroup ch = new ChildWithGroup();
    ch.father = Ref.create(Key.create(f));
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.test.LoadParentRefTests.Father

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.