org.hibernate.search.impl
Class SearchMappingBuilder

java.lang.Object
  extended by org.hibernate.search.impl.SearchMappingBuilder

public class SearchMappingBuilder
extends Object

package class extracting the SearchMappingFactory if needed


Method Summary
static SearchMapping getSearchMapping(SearchConfiguration cfg)
          This factory method takes a SearchConfiguration object and returns a SearchMapping object which defines the programmatic model for indexing entities and fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSearchMapping

public static SearchMapping getSearchMapping(SearchConfiguration cfg)
This factory method takes a SearchConfiguration object and returns a SearchMapping object which defines the programmatic model for indexing entities and fields. Throws SearchException: 1) No @Factory found 2) Multiple @Factory found 3) hibernate.search.model_mapping defines a class that cannot be found 4) Cannot invoke the @Factory method to get new instance of SearchMapping

Parameters:
cfg - the search configuration
Returns:
SearchMapping


Copyright © 2006-2013 Red Hat, Inc. All Rights Reserved