Package siena.base.test.model

Examples of siena.base.test.model.Discovery4Search2


  }
 
  public void testSearchMultipleMultiField() {
    Discovery4Search2[] discs = new Discovery4Search2[10];
    for(int i=0; i<10; i++){
      if(i%2==0) discs[i] = new Discovery4Search2("even_"+i, "even_"+i+" body", LongAutoID_CURIE);
      else discs[i] = new Discovery4Search2("odd_"+i, "odd_"+i+" body", LongAutoID_CURIE);
      pm.insert(discs[i]);
    }
   
    Query<Discovery4Search2> query =
      pm.createQuery(Discovery4Search2.class).search("even_", "name", "body").order("name");
View Full Code Here

TOP

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

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.