Class AbstractPojoMappingInitiator<MPBS extends MappingPartialBuildState>
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingInitiator<MPBS>
- All Implemented Interfaces:
MappingInitiator<PojoTypeMetadataContributor,
MPBS>
public abstract class AbstractPojoMappingInitiator<MPBS extends MappingPartialBuildState>
extends Object
implements MappingInitiator<PojoTypeMetadataContributor,MPBS>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractPojoMappingInitiator
(PojoBootstrapIntrospector introspector) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
void
annotatedTypeDiscoveryEnabled
(boolean enabled) Deprecated.bridges()
void
configure
(MappingBuildContext buildContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector) void
containedEntityIdentityMappingRequired
(boolean required) createMapper
(MappingBuildContext buildContext, TypeMetadataContributorProvider<PojoTypeMetadataContributor> contributorProvider) protected abstract PojoMapperDelegate<MPBS>
void
defaultReindexOnUpdate
(ReindexOnUpdate defaultReindexOnUpdate) void
providedIdentifierBridge
(BeanReference<? extends IdentifierBridge<Object>> providedIdentifierBridge) void
tenancyMode
(TenancyMode tenancyMode)
-
Constructor Details
-
AbstractPojoMappingInitiator
-
-
Method Details
-
programmaticMapping
-
annotationMapping
-
containerExtractors
-
bridges
-
providedIdentifierBridge
public void providedIdentifierBridge(BeanReference<? extends IdentifierBridge<Object>> providedIdentifierBridge) -
containedEntityIdentityMappingRequired
public void containedEntityIdentityMappingRequired(boolean required) -
tenancyMode
-
defaultReindexOnUpdate
-
annotatedTypeDiscoveryEnabled
Deprecated.UseAnnotationMappingConfigurationContext.discoverAnnotationsFromReferencedTypes(boolean)
on the object returned byannotationMapping()
instead.- Parameters:
enabled
-true
if Hibernate Search should automatically process mapping annotations on types referenced in the mapping of other types (e.g. the target of anIndexedEmbedded
, ...).false
if that discovery should be disabled.
-
configure
public void configure(MappingBuildContext buildContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector) - Specified by:
configure
in interfaceMappingInitiator<PojoTypeMetadataContributor,
MPBS extends MappingPartialBuildState>
-
createMapper
public Mapper<MPBS> createMapper(MappingBuildContext buildContext, TypeMetadataContributorProvider<PojoTypeMetadataContributor> contributorProvider) - Specified by:
createMapper
in interfaceMappingInitiator<PojoTypeMetadataContributor,
MPBS extends MappingPartialBuildState>
-
createMapperDelegate
-
addConfigurationContributor
-
AnnotationMappingConfigurationContext.discoverAnnotationsFromReferencedTypes(boolean)
on the object returned byannotationMapping()
instead.