Package com.google.appengine.datanucleus.test.jdo

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


  public void testEmbeddedCollection() {
    Object id = null;
    Key ownerKey = null;
    try {
      EmbeddedCollectionOwner owner = new EmbeddedCollectionOwner();
      EmbeddedRelatedBase baseRel1 = new EmbeddedRelatedBase("First Base", 100);
      owner.addChild(baseRel1);
      EmbeddedRelatedSub subRel2 = new EmbeddedRelatedSub("Second Base", 200, "Other Type");
      owner.addChild(subRel2);

      pm.currentTransaction().begin();
View Full Code Here


  public void testEmbeddedArray() {
    Object id = null;
    Key ownerKey = null;
    try {
      EmbeddedArrayOwner owner = new EmbeddedArrayOwner();
      EmbeddedRelatedBase baseRel1 = new EmbeddedRelatedBase("First Base", 100);
      EmbeddedRelatedSub subRel2 = new EmbeddedRelatedSub("Second Base", 200, "Other Type");
      EmbeddedRelatedBase[] array = new EmbeddedRelatedBase[]{baseRel1, subRel2};
      owner.setArray(array);

      pm.currentTransaction().begin();
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.EmbeddedRelatedBase

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.