Class HibernateOrmMapperSettings
- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated.static final class
Configuration property keys without theprefix
+HibernateOrmMapperSettings.Radicals.COORDINATION_PREFIX
.static final class
Default values for the different settings if no values are given.static final class
Configuration property keys without theprefix
+HibernateOrmMapperSettings.Radicals.INDEXING_PREFIX
.static final class
Configuration property keys without theprefix
+HibernateOrmMapperSettings.Radicals.MULTI_TENANCY_PREFIX
.static final class
Configuration property keys without theprefix
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.This setting will be removed in a future version.static final String
Deprecated.UseINDEXING_LISTENERS_ENABLED
instead.static final String
Deprecated.UseINDEXING_LISTENERS_ENABLED
instead (caution: it expects a boolean value).static final String
Deprecated.UseINDEXING_PLAN_SYNCHRONIZATION_STRATEGY
instead.static final String
The root property for properties related to coordination.static final String
How to coordinate between nodes of a distributed application.static final String
Whether Hibernate Search is enabled or disabled.static final String
Whether Hibernate ORM listeners that detect entity changes and automatically trigger indexing operations are enabled.static final String
The default index cleaning operation to apply during mass indexing, unless configured explicitly.static final String
How to synchronize between application threads and indexing triggered by theSearchIndexingPlan
.static final String
Whenannotation processing is enabled
(the default), whether Hibernate Search should automatically build Jandex indexes for types registered for annotation processing (entities in particular), to ensure that all "root mapping" annotations in those JARs (e.g.static final String
A configurer for the Hibernate Search mapping.static final String
Whenannotation processing is enabled
(the default), whether Hibernate Search should automatically discover annotated types present in the Jandex index that are also annotated withroot mapping annotations
.static final String
Whether annotations should be automatically processed for entity types, as well as nested types in those entity types, for instanceindex-embedded
types.static final String
How to convert tenant identifier to and form the string representation.static final String
An exhaustive list of all tenant identifiers that can be used by the application when multi-tenancy is enabled.static final String
The prefix expected for the key of every Hibernate Search configuration property when using the Hibernate ORM mapper.static final String
How to look up entities in the second-level cache when loading entities for a search query.static final String
How many entities to load per database query when loading entities for a search query.static final String
How indexes and their schema are created, updated, validated or dropped on startup and shutdown. -
Method Summary
-
Field Details
-
PREFIX
The prefix expected for the key of every Hibernate Search configuration property when using the Hibernate ORM mapper.- See Also:
-
ENABLED
Whether Hibernate Search is enabled or disabled.Expects a Boolean value such as
true
orfalse
, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.ENABLED
.- See Also:
-
AUTOMATIC_INDEXING_ENABLED
Deprecated.UseINDEXING_LISTENERS_ENABLED
instead.Whether listener-triggered indexing is enabled, i.e. whether changes to entities in a Hibernate ORM session are detected automatically and lead to reindexing.Expects a Boolean value such as
true
orfalse
, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.AUTOMATIC_INDEXING_ENABLED
.- See Also:
-
AUTOMATIC_INDEXING_STRATEGY
Deprecated.UseINDEXING_LISTENERS_ENABLED
instead (caution: it expects a boolean value).How to enable or disable listener-triggered indexing.Expects a
AutomaticIndexingStrategyName
value, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.AUTOMATIC_INDEXING_STRATEGY
.- See Also:
-
AUTOMATIC_INDEXING_SYNCHRONIZATION_STRATEGY
Deprecated.UseINDEXING_PLAN_SYNCHRONIZATION_STRATEGY
instead.How to synchronize between application threads and indexing triggered by theSearchIndexingPlan
.Expects one of the strings defined in
AutomaticIndexingSynchronizationStrategyNames
, or a reference to a bean of typeAutomaticIndexingSynchronizationStrategy
.Defaults to
HibernateOrmMapperSettings.Defaults.AUTOMATIC_INDEXING_SYNCHRONIZATION_STRATEGY
.- See Also:
-
AUTOMATIC_INDEXING_ENABLE_DIRTY_CHECK
Deprecated.This setting will be removed in a future version. There will be no alternative provided to replace it. After the removal of this property in a future version, a dirty check will always be performed when considering whether to trigger reindexing.Whether to check if dirty properties are relevant to indexing before actually reindexing an entity.When enabled, re-indexing of an entity is skipped if the only changes are on properties that are not used when indexing. This feature is considered safe and thus enabled by default.
Expects a Boolean value such as
true
orfalse
, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.AUTOMATIC_INDEXING_ENABLE_DIRTY_CHECK
.- See Also:
-
QUERY_LOADING_CACHE_LOOKUP_STRATEGY
How to look up entities in the second-level cache when loading entities for a search query.Expects a
EntityLoadingCacheLookupStrategy
value, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.QUERY_LOADING_CACHE_LOOKUP_STRATEGY
.- See Also:
-
QUERY_LOADING_FETCH_SIZE
How many entities to load per database query when loading entities for a search query.Expects a strictly positive Integer value, such as
100
, or a String that can be parsed into such Integer value.Defaults to
HibernateOrmMapperSettings.Defaults.QUERY_LOADING_FETCH_SIZE
.- See Also:
-
MAPPING_PROCESS_ANNOTATIONS
Whether annotations should be automatically processed for entity types, as well as nested types in those entity types, for instanceindex-embedded
types.Expects a Boolean value such as
true
orfalse
, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.MAPPING_PROCESS_ANNOTATIONS
.- See Also:
-
MAPPING_BUILD_MISSING_DISCOVERED_JANDEX_INDEXES
Whenannotation processing is enabled
(the default), whether Hibernate Search should automatically build Jandex indexes for types registered for annotation processing (entities in particular), to ensure that all "root mapping" annotations in those JARs (e.g.ProjectionConstructor
) are taken into account.Expects a Boolean value such as
true
orfalse
, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.MAPPING_BUILD_MISSING_DISCOVERED_JANDEX_INDEXES
.- See Also:
-
MAPPING_DISCOVER_ANNOTATED_TYPES_FROM_ROOT_MAPPING_ANNOTATIONS
Whenannotation processing is enabled
(the default), whether Hibernate Search should automatically discover annotated types present in the Jandex index that are also annotated withroot mapping annotations
.When enabled, if an annotation meta-annotated with
RootMapping
is found in the Jandex index, and a type annotated with that annotation (e.g.SearchEntity
orProjectionConstructor
) is found in the Jandex index, then that type will automatically be scanned for mapping annotations, even if the type wasn't explicitly added.Expects a Boolean value such as
true
orfalse
, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.MAPPING_DISCOVER_ANNOTATED_TYPES_FROM_ROOT_MAPPING_ANNOTATIONS
.- See Also:
-
MAPPING_CONFIGURER
A configurer for the Hibernate Search mapping.Expects a single-valued or multi-valued reference to beans of type
HibernateOrmSearchMappingConfigurer
.Defaults to no value.
- See Also:
-
SCHEMA_MANAGEMENT_STRATEGY
How indexes and their schema are created, updated, validated or dropped on startup and shutdown.Expects a
SchemaManagementStrategyName
value, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.SCHEMA_MANAGEMENT_STRATEGY
.- See Also:
-
COORDINATION
The root property for properties related to coordination.- See Also:
-
COORDINATION_STRATEGY
How to coordinate between nodes of a distributed application.Expects a reference to a coordination strategy; see the reference documentation for available strategies and the relevant Maven dependencies.
Defaults to
HibernateOrmMapperSettings.Defaults.COORDINATION_STRATEGY
.- See Also:
-
MULTI_TENANCY_TENANT_IDS
An exhaustive list of all tenant identifiers that can be used by the application when multi-tenancy is enabled.Expects either a String representing multiple tenant IDs separated by commas, or a
Collection<String>
containing tenant IDs.No default; this property may have to be set explicitly depending on the
coordination strategy
.- See Also:
-
MULTI_TENANCY_TENANT_IDENTIFIER_CONVERTER
How to convert tenant identifier to and form the string representation.Converts a tenant identifier to a string representation to be written to the index, and converts to its object representation from a string when a new Hibernate ORM session must be opened.
When multi-tenancy is enabled, and non-string tenant identifiers are used a custom converter must be provided through this property.
Defaults to
HibernateOrmMapperSettings.Defaults.MULTI_TENANCY_TENANT_IDENTIFIER_CONVERTER
. This converter only supports string tenant identifiers and will fail if some other type of identifiers is used.- See Also:
-
INDEXING_PLAN_SYNCHRONIZATION_STRATEGY
How to synchronize between application threads and indexing triggered by theSearchIndexingPlan
.Expects one of the strings defined in
IndexingPlanSynchronizationStrategyNames
, or a reference to a bean of typeIndexingPlanSynchronizationStrategy
.Defaults to
HibernateOrmMapperSettings.Defaults.INDEXING_PLAN_SYNCHRONIZATION_STRATEGY
.- See Also:
-
INDEXING_LISTENERS_ENABLED
Whether Hibernate ORM listeners that detect entity changes and automatically trigger indexing operations are enabled.Expects a Boolean value such as
true
orfalse
, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.INDEXING_LISTENERS_ENABLED
.- See Also:
-
INDEXING_MASS_DEFAULT_CLEAN_OPERATION
The default index cleaning operation to apply during mass indexing, unless configured explicitly.Expects a
MassIndexingDefaultCleanOperation
value, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.INDEXING_MASS_DEFAULT_CLEAN_OPERATION
.- See Also:
-