Class HibernateOrmMapperSettings
- java.lang.Object
-
- org.hibernate.search.mapper.orm.cfg.HibernateOrmMapperSettings
-
public final class HibernateOrmMapperSettings extends Object
- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHibernateOrmMapperSettings.AutomaticIndexingRadicalsConfiguration property keys without theprefix+HibernateOrmMapperSettings.Radicals.AUTOMATIC_INDEXING_PREFIX.static classHibernateOrmMapperSettings.CoordinationRadicalsConfiguration property keys without theprefix+HibernateOrmMapperSettings.Radicals.COORDINATION_PREFIX.static classHibernateOrmMapperSettings.DefaultsDefault values for the different settings if no values are given.static classHibernateOrmMapperSettings.MultiTenancyRadicalsConfiguration property keys without theprefix+HibernateOrmMapperSettings.Radicals.MULTI_TENANCY_PREFIX.static classHibernateOrmMapperSettings.RadicalsConfiguration property keys without theprefix.
-
Field Summary
Fields Modifier and Type Field Description static StringAUTOMATIC_INDEXING_ENABLE_DIRTY_CHECKWhether to check if dirty properties are relevant to indexing before actually reindexing an entity.static StringAUTOMATIC_INDEXING_ENABLEDWhether automatic indexing is enabled, i.e.static StringAUTOMATIC_INDEXING_STRATEGYDeprecated.UseAUTOMATIC_INDEXING_ENABLEDinstead (caution: it expects a boolean value).static StringAUTOMATIC_INDEXING_SYNCHRONIZATION_STRATEGYThe synchronization strategy to use when indexing automatically.static StringCOORDINATIONThe root property for properties related to coordination.static StringCOORDINATION_STRATEGYThe strategy for coordinating between nodes of a distributed application.static StringENABLEDWhether Hibernate Search is enabled or not.static StringMAPPING_CONFIGURERThe mapping configurer to use.static StringMAPPING_PROCESS_ANNOTATIONSWhether annotations should be automatically processed for entity types, as well as nested types in those entity types, for instance embedded types.static StringMULTI_TENANCY_TENANT_IDSAn exhaustive list of all tenant identifiers that can be used by the application when multi-tenancy is enabled.static StringPREFIXThe prefix expected for the key of every Hibernate Search configuration property when using the Hibernate ORM mapper.static StringQUERY_LOADING_CACHE_LOOKUP_STRATEGYThe strategy to use when loading entities during the execution of a search query.static StringQUERY_LOADING_FETCH_SIZEThe fetch size to use when loading entities during the execution of a search query.static StringSCHEMA_MANAGEMENT_STRATEGYThe schema management strategy, controlling how indexes and their schema are created, updated, validated or dropped on startup and shutdown.
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
The prefix expected for the key of every Hibernate Search configuration property when using the Hibernate ORM mapper.- See Also:
- Constant Field Values
-
ENABLED
public static final String ENABLED
Whether Hibernate Search is enabled or not.Expects a Boolean value such as
trueorfalse, or a string that can be parsed to such Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.ENABLED.- See Also:
- Constant Field Values
-
AUTOMATIC_INDEXING_ENABLED
public static final String AUTOMATIC_INDEXING_ENABLED
Whether automatic 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 to such Boolean value.Defaults to
HibernateOrmMapperSettings.Defaults.AUTOMATIC_INDEXING_ENABLED.- See Also:
- Constant Field Values
-
AUTOMATIC_INDEXING_STRATEGY
@Deprecated public static final String AUTOMATIC_INDEXING_STRATEGY
Deprecated.UseAUTOMATIC_INDEXING_ENABLEDinstead (caution: it expects a boolean value).The automatic indexing strategy to use.Expects a
AutomaticIndexingStrategyNamevalue, or a String representation of such value.Defaults to
HibernateOrmMapperSettings.Defaults.AUTOMATIC_INDEXING_STRATEGY.- See Also:
- Constant Field Values
-
AUTOMATIC_INDEXING_SYNCHRONIZATION_STRATEGY
public static final String AUTOMATIC_INDEXING_SYNCHRONIZATION_STRATEGY
The synchronization strategy to use when indexing automatically.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
public static final String AUTOMATIC_INDEXING_ENABLE_DIRTY_CHECK
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 to such Boolean value.Defaults to
Defaults#AUTOMATIC_INDEXING_ENABLE_DIRTY_CHECK.- See Also:
- Constant Field Values
-
QUERY_LOADING_CACHE_LOOKUP_STRATEGY
public static final String QUERY_LOADING_CACHE_LOOKUP_STRATEGY
The strategy to use when loading entities during the execution of 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
public static final String QUERY_LOADING_FETCH_SIZE
The fetch size to use when loading entities during the execution of 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:
- Constant Field Values
-
MAPPING_PROCESS_ANNOTATIONS
public static final String MAPPING_PROCESS_ANNOTATIONS
Whether annotations should be automatically processed for entity types, as well as nested types in those entity types, for instance embedded types.Expects a Boolean value such as
trueorfalse, or a string that can be parsed to such Boolean value.Defaults to
Defaults#ENABLE_ANNOTATION_MAPPING.- See Also:
- Constant Field Values
-
MAPPING_CONFIGURER
public static final String MAPPING_CONFIGURER
The mapping configurer to use.Expects a reference to a bean of type
HibernateOrmSearchMappingConfigurer.Defaults to no value.
-
SCHEMA_MANAGEMENT_STRATEGY
public static final String SCHEMA_MANAGEMENT_STRATEGY
The schema management strategy, controlling 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
public static final String COORDINATION
The root property for properties related to coordination.- See Also:
- Constant Field Values
-
COORDINATION_STRATEGY
public static final String COORDINATION_STRATEGY
The strategy for coordinating 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:
- Constant Field Values
-
MULTI_TENANCY_TENANT_IDS
public static final String 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:
- Constant Field Values
-
-