Package siena.base.test.model

Examples of siena.base.test.model.RelatedSeveralQueryChild


 
  public void testRelatedSeveralQuery() {
    RelatedSeveralQueryParent god = new RelatedSeveralQueryParent("god");
    god.insert();

    RelatedSeveralQueryChild adam1 = new RelatedSeveralQueryChild("adam1");
    adam1.owner = god;
    adam1.insert();
   
    RelatedSeveralQueryChild adam2 = new RelatedSeveralQueryChild("adam2");
    adam2.owner = god;
    adam2.insert();


    assertNotNull(god.id);
    assertEquals(god.id, adam1.owner.id);
    assertEquals(god.id, adam2.owner.id);
View Full Code Here


    RelatedSeveralQueryParent god = new RelatedSeveralQueryParent("god");
    god.insert();

    List<RelatedSeveralQueryChild> adams = new ArrayList<RelatedSeveralQueryChild>();
    for(int i=0; i<100; i++){
      RelatedSeveralQueryChild adam = new RelatedSeveralQueryChild("adam"+i);
      adam.owner = god;
      adam.insert();
      adams.add(adam);
    }
     
    RelatedSeveralQueryParent godbis = Model.getByKey(RelatedSeveralQueryParent.class, god.id);
    assertEquals(god, godbis);
View Full Code Here

TOP

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

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.