Class SearchMappingBuilder
java.lang.Object
org.infinispan.search.mapper.mapping.SearchMappingBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddEntityType
(Class<?> type) Register a type as an entity type with the default name, its class name.addEntityType
(Class<?> type, String entityName) Register a type as an entity type with the given name.addEntityTypes
(Set<Class<?>> types) introspector
(MethodHandles.Lookup lookup) org.hibernate.search.mapper.pojo.mapping.definition.programmatic.ProgrammaticMappingConfigurationContext
setEntityConverter
(EntityConverter entityConverter) setEntityLoader
(org.hibernate.search.mapper.pojo.loading.spi.PojoSelectionEntityLoader<?> entityLoader) setProperties
(Map<String, Object> map) setProperty
(String name, Object value) setProvidedIdentifierBridge
(org.hibernate.search.engine.environment.bean.BeanReference<? extends org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>> providedIdentifierBridge)
-
Method Details
-
introspector
-
programmaticMapping
public org.hibernate.search.mapper.pojo.mapping.definition.programmatic.ProgrammaticMappingConfigurationContext programmaticMapping() -
addEntityType
Register a type as an entity type with the default name, its class name.- Parameters:
type
- The type to be considered as an entity type.- Returns:
this
, for call chaining.
-
addEntityType
Register a type as an entity type with the given name.- Parameters:
type
- The type to be considered as an entity type.entityName
- The name of the entity.- Returns:
this
, for call chaining.
-
addEntityTypes
- Parameters:
types
- The types to be considered as entity types.- Returns:
this
, for call chaining.
-
setProvidedIdentifierBridge
public SearchMappingBuilder setProvidedIdentifierBridge(org.hibernate.search.engine.environment.bean.BeanReference<? extends org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>> providedIdentifierBridge) -
setEntityLoader
public SearchMappingBuilder setEntityLoader(org.hibernate.search.mapper.pojo.loading.spi.PojoSelectionEntityLoader<?> entityLoader) -
setEntityConverter
-
setProperty
-
setProperties
-
build
public SearchMapping build(Optional<org.hibernate.search.engine.common.spi.SearchIntegration> previousIntegration)
-