org.hibernate.search.impl
Class SearchMappingBuilder
java.lang.Object
org.hibernate.search.impl.SearchMappingBuilder
public class SearchMappingBuilder
- extends Object
package class extracting the SearchMappingFactory if needed
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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-2012 Red Hat Middleware, LLC. All Rights Reserved