Package org.hibernate.search.test.reader

Examples of org.hibernate.search.test.reader.Detective


    super(sf, startSignal);
  }

  @Override
  protected void doAction(FullTextSession s, int jobSeed) {
    Detective detective = new Detective();
    detective.setName("John Doe " + jobSeed);
    detective.setBadge("123455" + jobSeed);
    detective.setPhysicalDescription("Blond green eye etc etc");
    s.persist(detective);
    Suspect suspect = new Suspect();
    suspect.setName("Jane Doe " + jobSeed);
    suspect.setPhysicalDescription("brunette, short, 30-ish");
    if (jobSeed % 20 == 0) {
View Full Code Here


  @Override
  protected void doAction(FullTextSession s, int jobSeed) {
    FullTextQuery q = getQuery( "John", s, Detective.class );
    List list = q.setMaxResults( 1 ).list();
    for ( Object o : list){
      Detective detective = (Detective) o;
      detective.setPhysicalDescription( "old" );
    }
  }
View Full Code Here

  }
 
  private void createDoeFamily() {
    Session s = openSession( );
    Transaction tx = s.beginTransaction();
    Detective detective = new Detective();
    detective.setName( "John Doe" );
    s.persist( detective );
    Suspect suspect = new Suspect();
    suspect.setName( "Jane Doe" );
    s.persist( suspect );
    tx.commit();
View Full Code Here

  }

  private void createDoeFamily() {
    Session s = openSession( );
    Transaction tx = s.beginTransaction();
    Detective detective = new Detective();
    detective.setName( "John Doe" );
    s.persist( detective );
    Suspect suspect = new Suspect();
    suspect.setName( "Jane Doe" );
    s.persist( suspect );
    tx.commit();
View Full Code Here

TOP

Related Classes of org.hibernate.search.test.reader.Detective

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.