Class HibernateOrmMapperSettings
- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.static final classConfiguration property keys without theprefix+HibernateOrmMapperSettings.Radicals.COORDINATION_PREFIX.static final classDefault values for the different settings if no values are given.static final classConfiguration property keys without theprefix+HibernateOrmMapperSettings.Radicals.INDEXING_PREFIX.static final classConfiguration property keys without theprefix+HibernateOrmMapperSettings.Radicals.MULTI_TENANCY_PREFIX.static final classConfiguration property keys without theprefix. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.This setting will be removed in a future version.static final StringDeprecated.UseINDEXING_LISTENERS_ENABLEDinstead.static final StringDeprecated.UseINDEXING_LISTENERS_ENABLEDinstead (caution: it expects a boolean value).static final StringDeprecated.UseINDEXING_PLAN_SYNCHRONIZATION_STRATEGYinstead.static final StringThe root property for properties related to coordination.static final StringHow to coordinate between nodes of a distributed application.static final StringWhether Hibernate Search is enabled or disabled.static final StringWhether Hibernate ORM listeners that detect entity changes and automatically trigger indexing operations are enabled.static final StringHow to synchronize between application threads and indexing triggered by theSearchIndexingPlan.static final StringWhenannotation 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 StringA configurer for the Hibernate Search mapping.static final StringWhether annotations should be automatically processed for entity types, as well as nested types in those entity types, for instanceindex-embeddedtypes.static final StringAn exhaustive list of all tenant identifiers that can be used by the application when multi-tenancy is enabled.static final StringThe prefix expected for the key of every Hibernate Search configuration property when using the Hibernate ORM mapper.static final StringHow to look up entities in the second-level cache when loading entities for a search query.static final StringHow many entities to load per database query when loading entities for a search query.static final StringHow 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
trueorfalse, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.ENABLED.- See Also:
-
AUTOMATIC_INDEXING_ENABLED
Deprecated.UseINDEXING_LISTENERS_ENABLEDinstead.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
trueorfalse, 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_ENABLEDinstead (caution: it expects a boolean value).How to enable or disable listener-triggered indexing.Expects a
AutomaticIndexingStrategyNamevalue, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.AUTOMATIC_INDEXING_STRATEGY.- See Also:
-
AUTOMATIC_INDEXING_SYNCHRONIZATION_STRATEGY
Deprecated.UseINDEXING_PLAN_SYNCHRONIZATION_STRATEGYinstead.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. -
AUTOMATIC_INDEXING_ENABLE_DIRTY_CHECK
Deprecated.This setting will be removed in a future version. There will be no alternative provided to replace it. A dirty check will always be performed when considering triggering the 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
trueorfalse, 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
EntityLoadingCacheLookupStrategyvalue, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.QUERY_LOADING_CACHE_LOOKUP_STRATEGY. -
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-embeddedtypes.Expects a Boolean value such as
trueorfalse, 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
trueorfalse, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.MAPPING_BUILD_MISSING_DISCOVERED_JANDEX_INDEXES.- 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.
-
SCHEMA_MANAGEMENT_STRATEGY
How indexes and their schema are created, updated, validated or dropped on startup and shutdown.Expects a
SchemaManagementStrategyNamevalue, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.SCHEMA_MANAGEMENT_STRATEGY. -
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:
-
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. -
INDEXING_LISTENERS_ENABLED
Whether Hibernate ORM listeners that detect entity changes and automatically trigger indexing operations are enabled.Expects a Boolean value such as
trueorfalse, or a string that can be parsed into a Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.INDEXING_LISTENERS_ENABLED.- See Also:
-