Package org.hibernate.search.testsupport.setup

Examples of org.hibernate.search.testsupport.setup.SearchConfigurationForTest.addClass()


  private MutableSearchFactory getSearchFactory(Map<String, String> shardingProperties) {
    SearchConfigurationForTest configuration = new SearchConfigurationForTest();
    for ( Map.Entry<String, String> entry : shardingProperties.entrySet() ) {
      configuration.addProperty( entry.getKey(), entry.getValue() );
    }
    configuration.addClass( Foo.class );

    return (MutableSearchFactory) new SearchFactoryBuilder().configuration(
        configuration
    ).buildSearchFactory();
  }
View Full Code Here


    }
    for ( String key : configuration.stringPropertyNames() ) {
      cfg.addProperty( key, configuration.getProperty( key ) );
    }
    for ( Class<?> c : entities ) {
      cfg.addClass( c );
    }
    sf = new SearchFactoryBuilder().configuration( cfg ).buildSearchFactory();
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.