Examples of HasStringAncestorStringPkJDO


Examples of com.google.appengine.datanucleus.test.jdo.HasStringAncestorStringPkJDO

    assertEquals("parent named key", KeyFactory.stringToKey(ha.getId()).getParent().getName());
    commitTxn();
  }

  public void testInsertWithNullAncestor() {
    HasStringAncestorStringPkJDO ha = new HasStringAncestorStringPkJDO(null);
    makePersistentInTxn(ha, TXN_START_END);
    Key keyWithParent = KeyFactory.stringToKey(ha.getId());
    assertNull(keyWithParent.getParent());
  }
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.