Package org.hibernate.search.test.engine

Examples of org.hibernate.search.test.engine.Location


    Session session = openSession();
    FullTextSession fullTextSession = Search.getFullTextSession( session );
    Transaction transaction = fullTextSession.beginTransaction();
    Country italy = new Country( "Italy", 39d );
    for ( int i = 0; i < NUM_LOCATIONS; i++ ) {
      session.persist( new Location( i, Long.valueOf( i ), 7 * i, Double.valueOf( 9 * i ), Integer
          .valueOf( 100 - i ), String.valueOf( i ) + "42", null, italy, BigDecimal.ONE ) );
    }
    transaction.commit();
    session.close();
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.test.engine.Location

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.