Package siena.base.test.model

Examples of siena.base.test.model.Discovery4Join2


        Discovery4Join modelFromDatabase = pm.get(query);
        assertNull(modelFromDatabase.discovererJoined);
    }
   
    public void testInsertObjectWithDoubleNullJoinObject() {
        Discovery4Join2 model = new Discovery4Join2();
        model.discovererJoined = null; // explicitly set the join object to null
        model.discovererJoined2 = null; // explicitly set the join object to null

        pm.insert(model);

        Query<Discovery4Join2> query = pm.createQuery(Discovery4Join2.class).filter("id", model.id);
        Discovery4Join2 modelFromDatabase = pm.get(query);
        assertNull(modelFromDatabase.discovererJoined);
        assertNull(modelFromDatabase.discovererJoined2);
    }
View Full Code Here


        assertNull(modelFromDatabase.discovererJoined);
        assertNull(modelFromDatabase.discovererJoined2);
    }
   
  public void testJoinAnnotationDouble() {
    Discovery4Join2 radioactivity = new Discovery4Join2("Radioactivity", LongAutoID_CURIE, LongAutoID_TESLA);
    Discovery4Join2 relativity = new Discovery4Join2("Relativity", LongAutoID_EINSTEIN, LongAutoID_TESLA);
    Discovery4Join2 foo = new Discovery4Join2("Foo", LongAutoID_EINSTEIN, LongAutoID_EINSTEIN);
    Discovery4Join2 teslaCoil = new Discovery4Join2("Tesla Coil", LongAutoID_TESLA, LongAutoID_CURIE);
   
    pm.insert(radioactivity);
    pm.insert(relativity);
    pm.insert(foo);
    pm.insert(teslaCoil);
View Full Code Here

    Discovery4Join modelFromDatabase = pm.get(query).get();
    assertNull(modelFromDatabase.discovererJoined);
  }

  public void testInsertObjectWithDoubleNullJoinObject() {
    Discovery4Join2 model = new Discovery4Join2();
    model.discovererJoined = null; // explicitly set the join object to null
    model.discovererJoined2 = null; // explicitly set the join object to
                    // null

    pm.insert(model).get();

    QueryAsync<Discovery4Join2> query = pm.createQuery(Discovery4Join2.class)
        .filter("id", model.id);
    Discovery4Join2 modelFromDatabase = pm.get(query).get();
    assertNull(modelFromDatabase.discovererJoined);
    assertNull(modelFromDatabase.discovererJoined2);
  }
View Full Code Here

    assertNull(modelFromDatabase.discovererJoined);
    assertNull(modelFromDatabase.discovererJoined2);
  }

  public void testJoinAnnotationDouble() {
    Discovery4Join2 radioactivity = new Discovery4Join2("Radioactivity",
        LongAutoID_CURIE, LongAutoID_TESLA);
    Discovery4Join2 relativity = new Discovery4Join2("Relativity",
        LongAutoID_EINSTEIN, LongAutoID_TESLA);
    Discovery4Join2 foo = new Discovery4Join2("Foo", LongAutoID_EINSTEIN,
        LongAutoID_EINSTEIN);
    Discovery4Join2 teslaCoil = new Discovery4Join2("Tesla Coil",
        LongAutoID_TESLA, LongAutoID_CURIE);

    pm.insert(radioactivity, relativity, foo, teslaCoil).get();

    List<Discovery4Join2> res = pm.createQuery(Discovery4Join2.class)
View Full Code Here

TOP

Related Classes of siena.base.test.model.Discovery4Join2

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.