Package org.hibernate.cfg
Interface AvailableSettings
-
- All Superinterfaces:
AvailableSettings
- All Known Implementing Classes:
Environment
public interface AvailableSettings extends AvailableSettings
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACQUIRE_CONNECTIONS
Deprecated.(since 5.2) useCONNECTION_HANDLING
insteadstatic java.lang.String
ALLOW_ENHANCEMENT_AS_PROXY
Should Hibernate use enhanced entities "as a proxy"? E.g., when an application usesSession.load(java.lang.Class<T>, java.io.Serializable, org.hibernate.LockMode)
against an enhanced class, enabling this will allow Hibernate to create an "empty" instance of the enhanced class to act as the proxy - it contains just the identifier which is later used to trigger the base initialization but no other data is loaded Not enabling this (the legacy default behavior) would cause the "base" attributes to be loaded.static java.lang.String
ALLOW_JTA_TRANSACTION_ACCESS
Setting that allows access to the underlyingTransaction
, even when using a JTA since normal JPA operations prohibit this behavior.static java.lang.String
ALLOW_REFRESH_DETACHED_ENTITY
Setting that allows to callEntityManager.refresh(Object)
orSession.refresh(Object)
on a detached entity instance when theSession
is obtained from a JPAEntityManager
).static java.lang.String
ALLOW_UPDATE_OUTSIDE_TRANSACTION
Setting that allows to perform update operations outside of a transaction boundary.static java.lang.String
APP_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadstatic java.lang.String
ARTIFACT_PROCESSING_ORDER
Used to specify the order in which metadata sources should be processed.static java.lang.String
AUTO_CLOSE_SESSION
Enable automatic session close at end of transactionstatic java.lang.String
AUTO_EVICT_COLLECTION_CACHE
Enables the automatic eviction of a bi-directional association's collection cache when an element in the ManyToOne collection is added/updated/removed without properly managing the change on the OneToMany side.static java.lang.String
AUTO_SESSION_EVENTS_LISTENER
Defines a defaultSessionEventListener
to be applied to opened Sessions.static java.lang.String
AUTOCOMMIT
Controls the autocommit mode of JDBC Connections obtained from a non-DataSource ConnectionProvider - assuming the ConnectionProvider impl properly leverages this setting (the provided Hibernate impls all do).static java.lang.String
BATCH_FETCH_STYLE
Names theBatchFetchStyle
to use.static java.lang.String
BATCH_STRATEGY
Select a custom batcher.static java.lang.String
BATCH_VERSIONED_DATA
Should versioned data be included in batching?static java.lang.String
BEAN_CONTAINER
Identifies an explicitBeanContainer
to be used.static java.lang.String
BYTECODE_PROVIDER
Pick which bytecode enhancing library to use.static java.lang.String
C3P0_ACQUIRE_INCREMENT
Number of connections acquired when pool is exhaustedstatic java.lang.String
C3P0_CONFIG_PREFIX
A setting prefix used to indicate settings that target the hibernate-c3p0 integrationstatic java.lang.String
C3P0_IDLE_TEST_PERIOD
Idle time before a C3P0 pooled connection is validatedstatic java.lang.String
C3P0_MAX_SIZE
Maximum size of C3P0 connection poolstatic java.lang.String
C3P0_MAX_STATEMENTS
Maximum size of C3P0 statement cachestatic java.lang.String
C3P0_MIN_SIZE
Minimum size of C3P0 connection poolstatic java.lang.String
C3P0_TIMEOUT
Maximum idle time for C3P0 connection poolstatic java.lang.String
CACHE_KEYS_FACTORY
Allow control to specify theCacheKeysFactory
impl to use.static java.lang.String
CACHE_PROVIDER_CONFIG
The CacheProvider implementation classstatic java.lang.String
CACHE_REGION_FACTORY
TheRegionFactory
implementation.static java.lang.String
CACHE_REGION_PREFIX
The CacheProvider region name prefixstatic java.lang.String
CDI_BEAN_MANAGER
Used to pass along the CDI BeanManager, if any, to be used.static java.lang.String
CHECK_NULLABILITY
Enable nullability checking.static java.lang.String
CLASSLOADERS
Used to define aCollection
of theClassLoader
instances Hibernate should use for class-loading and resource-lookups.static java.lang.String
COLLECTION_JOIN_SUBQUERY
Setting which indicates whether or not the new JOINS over collection tables should be rewritten to subqueries.static java.lang.String
CONNECTION_HANDLING
Specifies how Hibernate should manage JDBC connections in terms of acquiring and releasing.static java.lang.String
CONNECTION_PREFIX
Names a prefix used to define arbitrary JDBC connection properties.static java.lang.String
CONNECTION_PROVIDER
Names theConnectionProvider
to use for obtaining JDBC connections.static java.lang.String
CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
Allows a user to tell Hibernate that the Connections we obtain from the configured ConnectionProvider will already have auto-commit disabled when we acquire them from the provider.static java.lang.String
CONVENTIONAL_JAVA_CONSTANTS
Setting which indicates whether or not Java constant follow the Java Naming conventions.static java.lang.String
CREATE_EMPTY_COMPOSITES_ENABLED
[EXPERIMENTAL] Enable instantiation of composite/embedded objects when all of its attribute values arenull
.static java.lang.String
CRITERIA_LITERAL_HANDLING_MODE
By default, Criteria queries uses bind parameters for any literal that is not a numeric value.static java.lang.String
CURRENT_SESSION_CONTEXT_CLASS
Context scoping impl forSessionFactory.getCurrentSession()
processing.static java.lang.String
CUSTOM_ENTITY_DIRTINESS_STRATEGY
Setting to identify aCustomEntityDirtinessStrategy
to use.static java.lang.String
DATASOURCE
Names aDataSource
.static java.lang.String
DEFAULT_BATCH_FETCH_SIZE
The default batch size for batch fetchingstatic java.lang.String
DEFAULT_CACHE_CONCURRENCY_STRATEGY
Setting used to give the name of the defaultCacheConcurrencyStrategy
to use when either@Cacheable
or@Cache
is used.static java.lang.String
DEFAULT_CATALOG
A default database catalog name to use for unqualified tablenamesstatic java.lang.String
DEFAULT_ENTITY_MODE
The EntityMode in which set the Session opened from the SessionFactory.static java.lang.String
DEFAULT_NULL_ORDERING
Default precedence of null values inORDER BY
clause.static java.lang.String
DEFAULT_SCHEMA
A default database schema (owner) name to use for unqualified tablenamesstatic java.lang.String
DELAY_ENTITY_LOADER_CREATIONS
Controls how the individual Loaders for an entity are created.static java.lang.String
DIALECT
Names the Hibernate SQLDialect
classstatic java.lang.String
DIALECT_RESOLVERS
Names any additionalDialectResolver
implementations to register with the standardDialectFactory
.static java.lang.String
DRIVER
Names the JDBC driver classstatic java.lang.String
ENABLE_LAZY_LOAD_NO_TRANS
static java.lang.String
ENABLE_SYNONYMS
If enabled, allows schema update and validation to support synonyms.static java.lang.String
ENFORCE_LEGACY_PROXY_CLASSNAMES
Configure the global BytecodeProvider implementation to generate class names matching the existing naming patterns.static java.lang.String
ENVIRONMENT_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadstatic java.lang.String
EXTRA_PHYSICAL_TABLE_TYPES
Identifies a comma-separate list of values to specify extra table types, other than the default "TABLE" value, to recognize as defining a physical table by schema update, creation and validation.static java.lang.String
FAIL_ON_PAGINATION_OVER_COLLECTION_FETCH
Raises an exception when in-memory pagination over collection fetch is about to be performed.static java.lang.String
FLUSH_BEFORE_COMPLETION
Enable automatic flush during the JTA beforeCompletion() callbackstatic java.lang.String
FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
static java.lang.String
FORMAT_SQL
Enable formatting of SQL logged to the consolestatic java.lang.String
GENERATE_STATISTICS
Enable statistics collectionstatic java.lang.String
GLOBALLY_QUOTED_IDENTIFIERS
Should all database identifiers be quoted.static java.lang.String
GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS
AssumingGLOBALLY_QUOTED_IDENTIFIERS
, this allows such global quoting to skip column-definitions as defined byColumn
,JoinColumn
, etc.static java.lang.String
HBM2DDL_AUTO
Setting to perform SchemaManagementTool actions automatically as part of the SessionFactory lifecycle.static java.lang.String
HBM2DDL_CHARSET_NAME
The name of the charset used by the schema generation resource.static java.lang.String
HBM2DDL_CONNECTION
Allows passing a specificConnection
instance to be used by SchemaManagementTool.static java.lang.String
HBM2DDL_CREATE_SCRIPT_SOURCE
Specifies the CREATE script file as either aReader
configured for reading of the DDL script file or a string designating a fileURL
for the DDL script.static java.lang.String
HBM2DDL_CREATE_SOURCE
Specifies whether schema generation commands for schema creation are to be determine based on object/relational mapping metadata, DDL scripts, or a combination of the two.static java.lang.String
HBM2DDL_DATABASE_ACTION
Setting to perform SchemaManagementTool actions against the database directly via JDBC automatically as part of the SessionFactory lifecycle.static java.lang.String
HBM2DDL_DB_MAJOR_VERSION
Specifies the major version of the underlying database, as would be returned byDatabaseMetaData.getDatabaseMajorVersion()
for the target database.static java.lang.String
HBM2DDL_DB_MINOR_VERSION
Specifies the minor version of the underlying database, as would be returned byDatabaseMetaData.getDatabaseMinorVersion()
for the target database.static java.lang.String
HBM2DDL_DB_NAME
Specifies the name of the database provider in cases where a Connection to the underlying database is not available (aka, mainly in generating scripts).static java.lang.String
HBM2DDL_DELIMITER
Identifies the delimiter to use to separate schema management statements in script outputsstatic java.lang.String
HBM2DDL_DROP_SCRIPT_SOURCE
Specifies the DROP script file as either aReader
configured for reading of the DDL script file or a string designating a fileURL
for the DDL script.static java.lang.String
HBM2DDL_DROP_SOURCE
Specifies whether schema generation commands for schema dropping are to be determine based on object/relational mapping metadata, DDL scripts, or a combination of the two.static java.lang.String
HBM2DDL_FILTER_PROVIDER
Used to specify theSchemaFilterProvider
to be used by create, drop, migrate and validate operations on the database schema.static java.lang.String
HBM2DDL_HALT_ON_ERROR
Whether the schema migration tool should halt on error, therefore terminating the bootstrap process.static java.lang.String
HBM2DDL_IMPORT_FILES
Comma-separated names of the optional files containing SQL DML statements executed during the SessionFactory creation.static java.lang.String
HBM2DDL_IMPORT_FILES_SQL_EXTRACTOR
Reference to theImportSqlCommandExtractor
implementation class to use for parsing source/import files as defined byHBM2DDL_CREATE_SCRIPT_SOURCE
,HBM2DDL_DROP_SCRIPT_SOURCE
orHBM2DDL_IMPORT_FILES
.static java.lang.String
HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY
Setting to choose the strategy used to access the JDBC Metadata.static java.lang.String
HBM2DDL_LOAD_SCRIPT_SOURCE
JPA variant ofHBM2DDL_IMPORT_FILES
static java.lang.String
HBM2DDL_SCRIPTS_ACTION
Setting to perform SchemaManagementTool actions writing the commands into a DDL script file.static java.lang.String
HBM2DDL_SCRIPTS_CREATE_TARGET
For cases where the "javax.persistence.schema-generation.scripts.action" value indicates that schema creation commands should be written to DDL script file, "javax.persistence.schema-generation.scripts.create-target" specifies either aWriter
configured for output of the DDL script or a string specifying the file URL for the DDL script.static java.lang.String
HBM2DDL_SCRIPTS_DROP_TARGET
For cases where the "javax.persistence.schema-generation.scripts.action" value indicates that schema drop commands should be written to DDL script file, "javax.persistence.schema-generation.scripts.drop-target" specifies either aWriter
configured for output of the DDL script or a string specifying the file URL for the DDL script.static java.lang.String
HBM2DLL_CREATE_NAMESPACES
Specifies whether to automatically create also the database schema/catalog.static java.lang.String
HBM2DLL_CREATE_SCHEMAS
The JPA variant ofHBM2DLL_CREATE_NAMESPACES
static java.lang.String
HIBERNATE_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadstatic java.lang.String
HQL_BULK_ID_STRATEGY
static java.lang.String
IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
The legacy behavior of Hibernate is to not use discriminators for joined inheritance (Hibernate does not need the discriminator...).static java.lang.String
IMMUTABLE_ENTITY_UPDATE_QUERY_HANDLING_MODE
static java.lang.String
IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
The legacy behavior of Hibernate is to not use discriminators for joined inheritance (Hibernate does not need the discriminator...).static java.lang.String
IMPLICIT_NAMING_STRATEGY
Used to specify theImplicitNamingStrategy
class to use.static java.lang.String
IN_CLAUSE_PARAMETER_PADDING
By default, the IN clause expands to include all bind parameter values.static java.lang.String
INTERCEPTOR
Names aInterceptor
implementation to be applied to theSessionFactory
and propagated to each Session created from the SessionFactory.static java.lang.String
ISOLATION
Names the JDBC transaction isolation levelstatic java.lang.String
JACC_CONTEXT_ID
Deprecated.Support for JACC will be removed in 6.0static java.lang.String
JACC_ENABLED
Deprecated.Support for JACC will be removed in 6.0static java.lang.String
JACC_PREFIX
Deprecated.Support for JACC will be removed in 6.0static java.lang.String
JDBC_TIME_ZONE
Default JDBC TimeZone.static java.lang.String
JDBC_TYLE_PARAMS_ZERO_BASE
Deprecated.This is a temporary backwards-compatibility setting to help applications using versions prior to 5.3 in upgrading.static java.lang.String
JMX_AGENT_ID
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846static java.lang.String
JMX_DEFAULT_OBJ_NAME_DOMAIN
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846static java.lang.String
JMX_DOMAIN_NAME
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846static java.lang.String
JMX_ENABLED
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846static java.lang.String
JMX_PLATFORM_SERVER
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846static java.lang.String
JMX_SF_NAME
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846static java.lang.String
JNDI_CLASS
Names the JNDIInitialContext
class.static java.lang.String
JNDI_PREFIX
Names a prefix used to define arbitrary JNDIInitialContext
properties.static java.lang.String
JNDI_URL
Names the JNDI provider/connection urlstatic java.lang.String
JPA_CACHING_COMPLIANCE
static java.lang.String
JPA_CLOSED_COMPLIANCE
JPA defines specific exceptions on specific methods when called onEntityManager
andEntityManagerFactory
when those objects have been closed.static java.lang.String
JPA_ID_GENERATOR_GLOBAL_SCOPE_COMPLIANCE
Determine if the scope ofTableGenerator.name()
andSequenceGenerator.name()
should be considered globally or locally defined.static java.lang.String
JPA_JDBC_DRIVER
The name of a JDBC driver to use to connect to the database.static java.lang.String
JPA_JDBC_PASSWORD
The JDBC connection password.static java.lang.String
JPA_JDBC_URL
The JDBC connection url to use to connect to the database.static java.lang.String
JPA_JDBC_USER
The JDBC connection user name.static java.lang.String
JPA_JTA_DATASOURCE
The JNDI name of a JTADataSource
.static java.lang.String
JPA_LIST_COMPLIANCE
Controls whether Hibernate should recognize what it considers a "bag" (PersistentBag
) as a List (PersistentList
) or as a bag.static java.lang.String
JPA_LOCK_SCOPE
Used to request (hint) a pessimistic lock scope.static java.lang.String
JPA_LOCK_TIMEOUT
Used to request (hint) a pessimistic lock timeout (in milliseconds).static java.lang.String
JPA_METAMODEL_GENERATION
Deprecated.useJPA_METAMODEL_POPULATION
instead.static java.lang.String
JPA_METAMODEL_POPULATION
Deprecated.static java.lang.String
JPA_NON_JTA_DATASOURCE
The JNDI name of a non-JTADataSource
.static java.lang.String
JPA_PERSIST_VALIDATION_GROUP
Used to coordinate with bean validatorsstatic java.lang.String
JPA_PERSISTENCE_PROVIDER
The name of thePersistenceProvider
implementorstatic java.lang.String
JPA_PROXY_COMPLIANCE
The JPA spec says that aEntityNotFoundException
should be thrown when accessing an entity Proxy which does not have an associated table row in the database.static java.lang.String
JPA_QUERY_COMPLIANCE
Controls whether Hibernate's handling ofQuery
(JPQL, Criteria and native-query) should strictly follow the JPA spec.static java.lang.String
JPA_REMOVE_VALIDATION_GROUP
Used to coordinate with bean validatorsstatic java.lang.String
JPA_SHARED_CACHE_MODE
Used to indicate whether second-level (what JPA terms shared cache) caching is enabled as per the rules defined in JPA 2 section 3.1.7.static java.lang.String
JPA_SHARED_CACHE_RETRIEVE_MODE
NOTE : Not a valid EMF property...static java.lang.String
JPA_SHARED_CACHE_STORE_MODE
NOTE : Not a valid EMF property...static java.lang.String
JPA_TRANSACTION_COMPLIANCE
Should Hibernate'sTransaction
behave as defined by the spec for JPA'sEntityTransaction
since it extends the JPA one.static java.lang.String
JPA_TRANSACTION_TYPE
The type of transactions supported by the entity managers.static java.lang.String
JPA_UPDATE_VALIDATION_GROUP
Used to coordinate with bean validatorsstatic java.lang.String
JPA_VALIDATION_FACTORY
Used to pass along any discovered validator factory.static java.lang.String
JPA_VALIDATION_MODE
Used to indicate what form of automatic validation is in effect as per rules defined in JPA 2 section 3.6.1.1static java.lang.String
JPAQL_STRICT_COMPLIANCE
static java.lang.String
JTA_CACHE_TM
A configuration value key used to indicate that it is safe to cacheTransactionManager
references.static java.lang.String
JTA_CACHE_UT
A configuration value key used to indicate that it is safe to cacheUserTransaction
references.static java.lang.String
JTA_PLATFORM
Names theJtaPlatform
implementation to use for integrating with JTA systems.static java.lang.String
JTA_PLATFORM_RESOLVER
Names theJtaPlatformResolver
implementation to use.static java.lang.String
JTA_TRACK_BY_THREAD
A transaction can be rolled back by another thread ("tracking by thread") -- not the original application.static java.lang.String
KEYWORD_AUTO_QUOTING_ENABLED
Specifies whether to automatically quote any names that are deemed keywords.static java.lang.String
LOG_JDBC_WARNINGS
Enable fetching JDBC statement warning for logging.static java.lang.String
LOG_SESSION_METRICS
A setting to control whether toStatisticalLoggingSessionEventListener
is enabled on all Sessions (unless explicitly disabled for a given Session).static java.lang.String
MAX_FETCH_DEPTH
Maximum depth of outer join fetchingstatic java.lang.String
MERGE_ENTITY_COPY_OBSERVER
Setting that specifies how Hibernate will respond when multiple representations of the same persistent entity ("entity copy") is detected while merging.static java.lang.String
MULTI_TENANT
Strategy for multi-tenancy.static java.lang.String
MULTI_TENANT_CONNECTION_PROVIDER
Names aMultiTenantConnectionProvider
implementation to use.static java.lang.String
MULTI_TENANT_IDENTIFIER_RESOLVER
Names aCurrentTenantIdentifierResolver
implementation to use.static java.lang.String
NATIVE_EXCEPTION_HANDLING_51_COMPLIANCE
Indicates if exception handling for a SessionFactory built via Hibernate's native bootstrapping should behave the same as native exception handling in Hibernate ORM 5.1, When set totrue
,HibernateException
will not be wrapped or converted according to the JPA specification.static java.lang.String
NON_CONTEXTUAL_LOB_CREATION
Should we not use contextual LOB creation (aka based onConnection.createBlob()
et al).static java.lang.String
ORDER_INSERTS
Enable ordering of insert statements for the purpose of more efficient JDBC batching.static java.lang.String
ORDER_UPDATES
Enable ordering of update statements by primary key valuestatic java.lang.String
PASS
Names the connection password.static java.lang.String
PHYSICAL_NAMING_STRATEGY
Used to specify thePhysicalNamingStrategy
class to use.static java.lang.String
POOL_SIZE
Maximum number of inactive connections for the built-in Hibernate connection pool.static java.lang.String
PREFER_GENERATOR_NAME_AS_DEFAULT_SEQUENCE_NAME
True/false setting indicating whether the value specified forGeneratedValue.generator()
should be used as the sequence/table name when no matchingSequenceGenerator
orTableGenerator
is found.static java.lang.String
PREFER_POOLED_VALUES_LO
Deprecated.UsePREFERRED_POOLED_OPTIMIZER
insteadstatic java.lang.String
PREFER_USER_TRANSACTION
Should we prefer using theJtaPlatform.retrieveUserTransaction()
over usingJtaPlatform.retrieveTransactionManager()
? Default isfalse
static java.lang.String
PREFERRED_POOLED_OPTIMIZER
When a generator specified an increment-size and an optimizer was not explicitly specified, which of the "pooled" optimizers should be preferred? Can specify an optimizer short name or an Optimizer impl FQN.static java.lang.String
PROCEDURE_NULL_PARAM_PASSING
Deprecated.(5.3) Hibernate determines it implicitlystatic java.lang.String
PROXOOL_CONFIG_PREFIX
A setting prefix used to indicate settings that target the hibernate-proxool integrationstatic java.lang.String
PROXOOL_EXISTING_POOL
Proxool property to configure the Proxool Provider from an already existing pool (true / false)static java.lang.String
PROXOOL_POOL_ALIAS
Proxool property with the Proxool pool alias to use (Required for PROXOOL_EXISTING_POOL, PROXOOL_PROPERTIES, or PROXOOL_XML)static java.lang.String
PROXOOL_PREFIX
Deprecated.UsePROXOOL_CONFIG_PREFIX
insteadstatic java.lang.String
PROXOOL_PROPERTIES
Proxool property to configure the Proxool Provider using a properties file (/path/to/proxool.properties)static java.lang.String
PROXOOL_XML
Proxool property to configure the Proxool Provider using an XML (/path/to/file.xml)static java.lang.String
QUERY_CACHE_FACTORY
TheTimestampsCacheFactory
implementation class.static java.lang.String
QUERY_PLAN_CACHE_MAX_SIZE
The maximum number of entries including:HQLQueryPlan
FilterQueryPlan
NativeSQLQueryPlan
maintained byQueryPlanCache
.static java.lang.String
QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
Deprecated.in favor ofQUERY_PLAN_CACHE_MAX_SIZE
static java.lang.String
QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES
Deprecated.in favor ofQUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
static java.lang.String
QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
The maximum number ofParameterMetadataImpl
maintained byQueryPlanCache
.static java.lang.String
QUERY_STARTUP_CHECKING
Should named queries be checked during startup (the default is enabled).static java.lang.String
QUERY_SUBSTITUTIONS
A comma-separated list of token substitutions to use when translating a Hibernate query to SQLstatic java.lang.String
QUERY_TRANSLATOR
The classname of the HQL query parser factorystatic java.lang.String
RELEASE_CONNECTIONS
Deprecated.(since 5.2) useCONNECTION_HANDLING
insteadstatic java.lang.String
RESOURCES_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadstatic java.lang.String
SCANNER
Pass an implementation ofScanner
.static java.lang.String
SCANNER_ARCHIVE_INTERPRETER
PassArchiveDescriptorFactory
to use in the scanning process.static java.lang.String
SCANNER_DEPRECATED
The deprecated name.static java.lang.String
SCANNER_DISCOVERY
Identifies a comma-separate list of values indicating the types of things we should auto-detect during scanning.static java.lang.String
SCHEMA_MANAGEMENT_TOOL
Used to specify theSchemaManagementTool
to use for performing schema management.static java.lang.String
SESSION_FACTORY_NAME
Setting used to name the HibernateSessionFactory
.static java.lang.String
SESSION_FACTORY_NAME_IS_JNDI
Does the value defined bySESSION_FACTORY_NAME
represent a JNDI namespace into which theSessionFactory
should be bound and made accessible? Defaults totrue
for backwards compatibility.static java.lang.String
SESSION_SCOPED_INTERCEPTOR
Names aInterceptor
implementation to be applied to theSessionFactory
and propagated to each Session created from the SessionFactory.static java.lang.String
SHOW_SQL
Enable logging of generated SQL to the consolestatic java.lang.String
SQL_EXCEPTION_CONVERTER
TheSQLExceptionConverter
to use for converting SQLExceptions to Hibernate's JDBCException hierarchy.static java.lang.String
STATEMENT_BATCH_SIZE
Maximum JDBC batch size.static java.lang.String
STATEMENT_FETCH_SIZE
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed.static java.lang.String
STATEMENT_INSPECTOR
Names aStatementInspector
implementation to be applied to theSessionFactory
.static java.lang.String
STATIC_METAMODEL_POPULATION
Setting that controls whether we seek out JPA "static metamodel" classes and populate them.static java.lang.String
STORAGE_ENGINE
Defines the default storage engine for the relational databases that support multiple storage engines.static java.lang.String
TABLE_GENERATOR_STORE_LAST_USED
True/False setting indicating if the value stored in the table used by theTableGenerator
is the last value generated or the next value to be used.static java.lang.String
TC_CLASSLOADER
Used to define how the current thread contextClassLoader
must be used for class lookup.static java.lang.String
TRANSACTION_COORDINATOR_STRATEGY
Names the implementation ofTransactionCoordinatorBuilder
to use for creatingTransactionCoordinator
instances.static java.lang.String
UNIQUE_CONSTRAINT_SCHEMA_UPDATE_STRATEGY
Unique columns and unique keys both use unique constraints in most dialects.static java.lang.String
URL
Names the JDBC connection url.static java.lang.String
USE_DIRECT_REFERENCE_CACHE_ENTRIES
Enable direct storage of entity references into the second level cache when applicable (immutable data, etc).static java.lang.String
USE_ENTITY_WHERE_CLAUSE_FOR_COLLECTIONS
Controls whether an entity's "where" clause, mapped using@Where(clause="....")
or<entity ...
static java.lang.String
USE_GET_GENERATED_KEYS
Tells the JDBC driver to attempt to retrieve row Id with the JDBC 3.0 PreparedStatement.getGeneratedKeys() method.static java.lang.String
USE_IDENTIFIER_ROLLBACK
static java.lang.String
USE_LEGACY_LIMIT_HANDLERS
Setting which indicates whether or not to useLimitHandler
implementations that sacrifices performance optimizations to allow legacy 4.x limit behavior.static java.lang.String
USE_MINIMAL_PUTS
Optimize the cache for minimal puts instead of minimal getsstatic java.lang.String
USE_NATIONALIZED_CHARACTER_DATA
Enable nationalized character support on all string / clob based attribute ( string, char, clob, text etc ).static java.lang.String
USE_NEW_ID_GENERATOR_MAPPINGS
Setting which indicates whether or not the newIdentifierGenerator
are used for AUTO, TABLE and SEQUENCE.static java.lang.String
USE_QUERY_CACHE
Enable the query cache (disabled by default)static java.lang.String
USE_REFLECTION_OPTIMIZER
Use bytecode libraries optimized property accessstatic java.lang.String
USE_SCROLLABLE_RESULTSET
Use JDBC scrollable ResultSets.static java.lang.String
USE_SECOND_LEVEL_CACHE
Enable the second-level cache (enabled by default)static java.lang.String
USE_SQL_COMMENTS
Add comments to the generated SQLstatic java.lang.String
USE_STREAMS_FOR_BINARY
Use java.io streams to read / write binary data from / to JDBCstatic java.lang.String
USE_STRUCTURED_CACHE
Enable use of structured second-level cache entriesstatic java.lang.String
USER
Names the connection user.static java.lang.String
VALIDATE_QUERY_PARAMETERS
Setting which indicates ifQuery.setParameter(javax.persistence.Parameter<java.time.Instant>, java.time.Instant, javax.persistence.TemporalType)
should not perform parameters validation This setting is applied only when the Session is bootstrapped via JPAEntityManagerFactory
static java.lang.String
WRAP_RESULT_SETS
Enable wrapping of JDBC result sets in order to speed up column name lookups for broken JDBC drivers-
Fields inherited from interface org.hibernate.jpa.AvailableSettings
ALIAS_SPECIFIC_LOCK_MODE, CFG_FILE, CLASS_CACHE_PREFIX, COLLECTION_CACHE_PREFIX, DELAY_CDI_ACCESS, DISCARD_PC_ON_CLOSE, ENHANCER_ENABLE_ASSOCIATION_MANAGEMENT, ENHANCER_ENABLE_DIRTY_TRACKING, ENHANCER_ENABLE_LAZY_INITIALIZATION, ENTITY_MANAGER_FACTORY_NAME, EVENT_LISTENER_PREFIX, FLUSH_MODE, HBXML_FILES, IDENTIFIER_GENERATOR_STRATEGY_PROVIDER, JDBC_DRIVER, JDBC_PASSWORD, JDBC_URL, JDBC_USER, JTA_DATASOURCE, LOADED_CLASSES, LOCK_SCOPE, LOCK_TIMEOUT, NON_JTA_DATASOURCE, PERSIST_VALIDATION_GROUP, PERSISTENCE_UNIT_NAME, PROVIDER, REMOVE_VALIDATION_GROUP, SCHEMA_GEN_CONNECTION, SCHEMA_GEN_CREATE_SCHEMAS, SCHEMA_GEN_CREATE_SCRIPT_SOURCE, SCHEMA_GEN_CREATE_SOURCE, SCHEMA_GEN_DATABASE_ACTION, SCHEMA_GEN_DB_MAJOR_VERSION, SCHEMA_GEN_DB_MINOR_VERSION, SCHEMA_GEN_DB_NAME, SCHEMA_GEN_DROP_SCRIPT_SOURCE, SCHEMA_GEN_DROP_SOURCE, SCHEMA_GEN_LOAD_SCRIPT_SOURCE, SCHEMA_GEN_SCRIPTS_ACTION, SCHEMA_GEN_SCRIPTS_CREATE_TARGET, SCHEMA_GEN_SCRIPTS_DROP_TARGET, SESSION_FACTORY_OBSERVER, SESSION_INTERCEPTOR, SHARED_CACHE_MODE, SHARED_CACHE_RETRIEVE_MODE, SHARED_CACHE_STORE_MODE, TRANSACTION_TYPE, UPDATE_VALIDATION_GROUP, VALIDATION_FACTORY, VALIDATION_MODE, XML_FILE_NAMES
-
-
-
-
Field Detail
-
JPA_PERSISTENCE_PROVIDER
static final java.lang.String JPA_PERSISTENCE_PROVIDER
The name of thePersistenceProvider
implementor See JPA 2 sections 9.4.3 and 8.2.1.4- See Also:
- Constant Field Values
-
JPA_TRANSACTION_TYPE
static final java.lang.String JPA_TRANSACTION_TYPE
The type of transactions supported by the entity managers. See JPA 2 sections 9.4.3 and 8.2.1.2- See Also:
- Constant Field Values
-
JPA_JTA_DATASOURCE
static final java.lang.String JPA_JTA_DATASOURCE
The JNDI name of a JTADataSource
. See JPA 2 sections 9.4.3 and 8.2.1.5- See Also:
- Constant Field Values
-
JPA_NON_JTA_DATASOURCE
static final java.lang.String JPA_NON_JTA_DATASOURCE
The JNDI name of a non-JTADataSource
. See JPA 2 sections 9.4.3 and 8.2.1.5- See Also:
- Constant Field Values
-
JPA_JDBC_DRIVER
static final java.lang.String JPA_JDBC_DRIVER
The name of a JDBC driver to use to connect to the database. Used in conjunction withJPA_JDBC_URL
,JPA_JDBC_USER
andJPA_JDBC_PASSWORD
to define how to make connections to the database in lieu of a datasource (eitherJPA_JTA_DATASOURCE
orJPA_NON_JTA_DATASOURCE
). See section 8.2.1.9- See Also:
- Constant Field Values
-
JPA_JDBC_URL
static final java.lang.String JPA_JDBC_URL
The JDBC connection url to use to connect to the database. Used in conjunction withJPA_JDBC_DRIVER
,JPA_JDBC_USER
andJPA_JDBC_PASSWORD
to define how to make connections to the database in lieu of a datasource (eitherJPA_JTA_DATASOURCE
orJPA_NON_JTA_DATASOURCE
). See section 8.2.1.9- See Also:
- Constant Field Values
-
JPA_JDBC_USER
static final java.lang.String JPA_JDBC_USER
The JDBC connection user name. Used in conjunction withJPA_JDBC_DRIVER
,JPA_JDBC_URL
andJPA_JDBC_PASSWORD
to define how to make connections to the database in lieu of a datasource (eitherJPA_JTA_DATASOURCE
orJPA_NON_JTA_DATASOURCE
). See section 8.2.1.9- See Also:
- Constant Field Values
-
JPA_JDBC_PASSWORD
static final java.lang.String JPA_JDBC_PASSWORD
The JDBC connection password. Used in conjunction withJPA_JDBC_DRIVER
,JPA_JDBC_URL
andJPA_JDBC_USER
to define how to make connections to the database in lieu of a datasource (eitherJPA_JTA_DATASOURCE
orJPA_NON_JTA_DATASOURCE
). See JPA 2 section 8.2.1.9- See Also:
- Constant Field Values
-
JPA_SHARED_CACHE_MODE
static final java.lang.String JPA_SHARED_CACHE_MODE
Used to indicate whether second-level (what JPA terms shared cache) caching is enabled as per the rules defined in JPA 2 section 3.1.7. See JPA 2 sections 9.4.3 and 8.2.1.7- See Also:
SharedCacheMode
, Constant Field Values
-
JPA_SHARED_CACHE_RETRIEVE_MODE
static final java.lang.String JPA_SHARED_CACHE_RETRIEVE_MODE
NOTE : Not a valid EMF property... Used to indicate if the provider should attempt to retrieve requested data in the shared cache.- See Also:
CacheRetrieveMode
, Constant Field Values
-
JPA_SHARED_CACHE_STORE_MODE
static final java.lang.String JPA_SHARED_CACHE_STORE_MODE
NOTE : Not a valid EMF property... Used to indicate if the provider should attempt to store data loaded from the database in the shared cache.- See Also:
CacheStoreMode
, Constant Field Values
-
JPA_VALIDATION_MODE
static final java.lang.String JPA_VALIDATION_MODE
Used to indicate what form of automatic validation is in effect as per rules defined in JPA 2 section 3.6.1.1 See JPA 2 sections 9.4.3 and 8.2.1.8- See Also:
ValidationMode
, Constant Field Values
-
JPA_VALIDATION_FACTORY
static final java.lang.String JPA_VALIDATION_FACTORY
Used to pass along any discovered validator factory.- See Also:
- Constant Field Values
-
JPA_PERSIST_VALIDATION_GROUP
static final java.lang.String JPA_PERSIST_VALIDATION_GROUP
Used to coordinate with bean validators See JPA 2 section 8.2.1.9- See Also:
- Constant Field Values
-
JPA_UPDATE_VALIDATION_GROUP
static final java.lang.String JPA_UPDATE_VALIDATION_GROUP
Used to coordinate with bean validators See JPA 2 section 8.2.1.9- See Also:
- Constant Field Values
-
JPA_REMOVE_VALIDATION_GROUP
static final java.lang.String JPA_REMOVE_VALIDATION_GROUP
Used to coordinate with bean validators See JPA 2 section 8.2.1.9- See Also:
- Constant Field Values
-
JPA_LOCK_SCOPE
static final java.lang.String JPA_LOCK_SCOPE
Used to request (hint) a pessimistic lock scope. See JPA 2 sections 8.2.1.9 and 3.4.4.3- See Also:
- Constant Field Values
-
JPA_LOCK_TIMEOUT
static final java.lang.String JPA_LOCK_TIMEOUT
Used to request (hint) a pessimistic lock timeout (in milliseconds). See JPA 2 sections 8.2.1.9 and 3.4.4.3- See Also:
- Constant Field Values
-
CDI_BEAN_MANAGER
static final java.lang.String CDI_BEAN_MANAGER
Used to pass along the CDI BeanManager, if any, to be used. According to JPA, strictly, the BeanManager should be passed in at boot-time and be ready for use at that time. However not all environments can do this (WildFly e.g.). To accommodate such environments, Hibernate provides 2 options: * a proprietary CDI extension SPI (that we have proposed to the CDI spec group as a standard option) that can be used to provide delayed BeanManager access. To use this solution, the reference passed as the BeanManager during bootstrap should be typed asExtendedBeanManager
* delayed access to the BeanManager reference. Here, Hibernate will not access the reference passed as the BeanManager during bootstrap until it is first needed. Note however that this has the effect of delaying any deployement problems until after bootstrapping. This setting is used to configure Hibernate ORM's access to the BeanManager (either directly or viaExtendedBeanManager
).- See Also:
- Constant Field Values
-
CLASSLOADERS
static final java.lang.String CLASSLOADERS
Used to define aCollection
of theClassLoader
instances Hibernate should use for class-loading and resource-lookups.- Since:
- 5.0
- See Also:
- Constant Field Values
-
TC_CLASSLOADER
static final java.lang.String TC_CLASSLOADER
Used to define how the current thread contextClassLoader
must be used for class lookup.- See Also:
TcclLookupPrecedence
, Constant Field Values
-
APP_CLASSLOADER
@Deprecated static final java.lang.String APP_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadNames theClassLoader
used to load user application classes.- Since:
- 4.0
- See Also:
- Constant Field Values
-
RESOURCES_CLASSLOADER
@Deprecated static final java.lang.String RESOURCES_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadNames theClassLoader
Hibernate should use to perform resource loading.- Since:
- 4.0
- See Also:
- Constant Field Values
-
HIBERNATE_CLASSLOADER
@Deprecated static final java.lang.String HIBERNATE_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadNames theClassLoader
responsible for loading Hibernate classes. By default this is theClassLoader
that loaded this class.- Since:
- 4.0
- See Also:
- Constant Field Values
-
ENVIRONMENT_CLASSLOADER
@Deprecated static final java.lang.String ENVIRONMENT_CLASSLOADER
Deprecated.UseCLASSLOADERS
insteadNames theClassLoader
used when Hibernate is unable to locates classes on theAPP_CLASSLOADER
orHIBERNATE_CLASSLOADER
.- Since:
- 4.0
- See Also:
- Constant Field Values
-
JPA_METAMODEL_GENERATION
@Deprecated static final java.lang.String JPA_METAMODEL_GENERATION
Deprecated.useJPA_METAMODEL_POPULATION
instead.- See Also:
- Constant Field Values
-
JPA_METAMODEL_POPULATION
@Deprecated static final java.lang.String JPA_METAMODEL_POPULATION
Deprecated.Setting that indicates whether to build the JPA types. Accepts 3 values:- enabled - Do the build
- disabled - Do not so the build
- ignoreUnsupported - Do the build, but ignore any non-JPA features that would otherwise result in a failure.
- See Also:
- Constant Field Values
-
STATIC_METAMODEL_POPULATION
static final java.lang.String STATIC_METAMODEL_POPULATION
Setting that controls whether we seek out JPA "static metamodel" classes and populate them. Accepts 3 values:- enabled -Do the population
- disabled - Do not do the population
- skipUnsupported - Do the population, but ignore any non-JPA features that would otherwise result in the population failing.
- See Also:
- Constant Field Values
-
CONNECTION_PROVIDER
static final java.lang.String CONNECTION_PROVIDER
Names theConnectionProvider
to use for obtaining JDBC connections. Can reference:- an instance of ConnectionProvider
- a
Class<? extends ConnectionProvider>
reference - a
Class<? extends ConnectionProvider>
FQN
"class"
appears in the setting name due to legacy reasons; however it can accept instances.- See Also:
- Constant Field Values
-
DRIVER
static final java.lang.String DRIVER
Names the JDBC driver class- See Also:
- Constant Field Values
-
URL
static final java.lang.String URL
Names the JDBC connection url.- See Also:
- Constant Field Values
-
USER
static final java.lang.String USER
Names the connection user. This might mean one of 2 things in out-of-the-box HibernateConnectionProvider
:- The username used to pass along to creating the JDBC connection
- The username used to obtain a JDBC connection from a data source
- See Also:
- Constant Field Values
-
PASS
static final java.lang.String PASS
Names the connection password. See usage discussion onUSER
- See Also:
- Constant Field Values
-
ISOLATION
static final java.lang.String ISOLATION
Names the JDBC transaction isolation level- See Also:
- Constant Field Values
-
AUTOCOMMIT
static final java.lang.String AUTOCOMMIT
Controls the autocommit mode of JDBC Connections obtained from a non-DataSource ConnectionProvider - assuming the ConnectionProvider impl properly leverages this setting (the provided Hibernate impls all do).- See Also:
- Constant Field Values
-
POOL_SIZE
static final java.lang.String POOL_SIZE
Maximum number of inactive connections for the built-in Hibernate connection pool.- See Also:
- Constant Field Values
-
DATASOURCE
static final java.lang.String DATASOURCE
Names aDataSource
. Can reference:- a
DataSource
instance - a JNDI name under which to locate the
DataSource
JNDI_CLASS
,JNDI_URL
,JNDI_PREFIX
, etc.- See Also:
- Constant Field Values
- a
-
CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
static final java.lang.String CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
Allows a user to tell Hibernate that the Connections we obtain from the configured ConnectionProvider will already have auto-commit disabled when we acquire them from the provider. When we get connections already in auto-commit, this allows us to circumvent some operations in the interest of performance. Default value isfalse
- do not skip, aka call setAutocommit- Since:
- 5.2.10
- See Also:
- Constant Field Values
-
CONNECTION_PREFIX
static final java.lang.String CONNECTION_PREFIX
Names a prefix used to define arbitrary JDBC connection properties. These properties are passed along to the JDBC provider when creating a connection.- See Also:
- Constant Field Values
-
JNDI_CLASS
static final java.lang.String JNDI_CLASS
Names the JNDIInitialContext
class.- See Also:
Context.INITIAL_CONTEXT_FACTORY
, Constant Field Values
-
JNDI_URL
static final java.lang.String JNDI_URL
Names the JNDI provider/connection url- See Also:
Context.PROVIDER_URL
, Constant Field Values
-
JNDI_PREFIX
static final java.lang.String JNDI_PREFIX
Names a prefix used to define arbitrary JNDIInitialContext
properties. These properties are passed along toInitialContext(java.util.Hashtable)
- See Also:
- Constant Field Values
-
DIALECT
static final java.lang.String DIALECT
Names the Hibernate SQLDialect
class- See Also:
- Constant Field Values
-
DIALECT_RESOLVERS
static final java.lang.String DIALECT_RESOLVERS
Names any additionalDialectResolver
implementations to register with the standardDialectFactory
.- See Also:
- Constant Field Values
-
STORAGE_ENGINE
static final java.lang.String STORAGE_ENGINE
Defines the default storage engine for the relational databases that support multiple storage engines. This property must be set either as an Environment variable or JVM System Property. That is because the Dialect is bootstrapped prior to Hibernate property resolution.- Since:
- 5.2.9
- See Also:
- Constant Field Values
-
SCHEMA_MANAGEMENT_TOOL
static final java.lang.String SCHEMA_MANAGEMENT_TOOL
Used to specify theSchemaManagementTool
to use for performing schema management. The default is to useHibernateSchemaManagementTool
- Since:
- 5.0
- See Also:
- Constant Field Values
-
TRANSACTION_COORDINATOR_STRATEGY
static final java.lang.String TRANSACTION_COORDINATOR_STRATEGY
Names the implementation ofTransactionCoordinatorBuilder
to use for creatingTransactionCoordinator
instances. Can be- TransactionCoordinatorBuilder instance
- TransactionCoordinatorBuilder implementation
Class
reference - TransactionCoordinatorBuilder implementation class name (FQN) or short-name
- Since:
- 5.0
- See Also:
- Constant Field Values
-
JTA_PLATFORM
static final java.lang.String JTA_PLATFORM
Names theJtaPlatform
implementation to use for integrating with JTA systems. Can reference either aJtaPlatform
instance or the name of theJtaPlatform
implementation class- Since:
- 4.0
- See Also:
- Constant Field Values
-
PREFER_USER_TRANSACTION
static final java.lang.String PREFER_USER_TRANSACTION
Should we prefer using theJtaPlatform.retrieveUserTransaction()
over usingJtaPlatform.retrieveTransactionManager()
? Default isfalse
- Since:
- 5.0
- See Also:
- Constant Field Values
-
JTA_PLATFORM_RESOLVER
static final java.lang.String JTA_PLATFORM_RESOLVER
Names theJtaPlatformResolver
implementation to use.- Since:
- 4.3
- See Also:
- Constant Field Values
-
JTA_CACHE_TM
static final java.lang.String JTA_CACHE_TM
A configuration value key used to indicate that it is safe to cacheTransactionManager
references.- Since:
- 4.0
- See Also:
- Constant Field Values
-
JTA_CACHE_UT
static final java.lang.String JTA_CACHE_UT
A configuration value key used to indicate that it is safe to cacheUserTransaction
references.- Since:
- 4.0
- See Also:
- Constant Field Values
-
JDBC_TYLE_PARAMS_ZERO_BASE
@Deprecated static final java.lang.String JDBC_TYLE_PARAMS_ZERO_BASE
Deprecated.This is a temporary backwards-compatibility setting to help applications using versions prior to 5.3 in upgrading. Deprecation warnings are issued when this is set to `true`.`true` / `false - should zero be used as the base for JDBC-style parameters found in native-queries?- Since:
- 5.3
- See Also:
DeprecationLogger.logUseOfDeprecatedZeroBasedJdbcStyleParams()
, Constant Field Values
-
DEFAULT_CATALOG
static final java.lang.String DEFAULT_CATALOG
A default database catalog name to use for unqualified tablenames
-
DEFAULT_SCHEMA
static final java.lang.String DEFAULT_SCHEMA
A default database schema (owner) name to use for unqualified tablenames
-
DEFAULT_CACHE_CONCURRENCY_STRATEGY
static final java.lang.String DEFAULT_CACHE_CONCURRENCY_STRATEGY
Setting used to give the name of the defaultCacheConcurrencyStrategy
to use when either@Cacheable
or@Cache
is used.@Cache(strategy="..")
is used to override.
-
USE_NEW_ID_GENERATOR_MAPPINGS
static final java.lang.String USE_NEW_ID_GENERATOR_MAPPINGS
Setting which indicates whether or not the newIdentifierGenerator
are used for AUTO, TABLE and SEQUENCE. Default istrue
. Existing applications may want to disable this (set itfalse
) for upgrade compatibility.
-
FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
static final java.lang.String FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
-
IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
static final java.lang.String IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
The legacy behavior of Hibernate is to not use discriminators for joined inheritance (Hibernate does not need the discriminator...). However, some JPA providers do need the discriminator for handling joined inheritance. In the interest of portability this capability has been added to Hibernate too. However, we want to make sure that legacy applications continue to work as well. Which puts us in a bind in terms of how to handle "implicit" discriminator mappings. The solution is to assume that the absence of discriminator metadata means to follow the legacy behavior *unless* this setting is enabled. With this setting enabled, Hibernate will interpret the absence of discriminator metadata as an indication to use the JPA defined defaults for these absent annotations. See Hibernate Jira issue HHH-6911 for additional background info.
-
IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
static final java.lang.String IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
The legacy behavior of Hibernate is to not use discriminators for joined inheritance (Hibernate does not need the discriminator...). However, some JPA providers do need the discriminator for handling joined inheritance. In the interest of portability this capability has been added to Hibernate too. Existing applications rely (implicitly or explicitly) on Hibernate ignoring any DiscriminatorColumn declarations on joined inheritance hierarchies. This setting allows these applications to maintain the legacy behavior of DiscriminatorColumn annotations being ignored when paired with joined inheritance. See Hibernate Jira issue HHH-6911 for additional background info.
-
USE_NATIONALIZED_CHARACTER_DATA
static final java.lang.String USE_NATIONALIZED_CHARACTER_DATA
Enable nationalized character support on all string / clob based attribute ( string, char, clob, text etc ). Default isfalse
.
-
SCANNER_DEPRECATED
static final java.lang.String SCANNER_DEPRECATED
The deprecated name. UseSCANNER
orSCANNER_ARCHIVE_INTERPRETER
instead.- See Also:
- Constant Field Values
-
SCANNER
static final java.lang.String SCANNER
Pass an implementation ofScanner
. Accepts either:- an actual instance
- a reference to a Class that implements Scanner
- a fully qualified name (String) of a Class that implements Scanner
-
SCANNER_ARCHIVE_INTERPRETER
static final java.lang.String SCANNER_ARCHIVE_INTERPRETER
PassArchiveDescriptorFactory
to use in the scanning process. Accepts either:- an ArchiveDescriptorFactory instance
- a reference to a Class that implements ArchiveDescriptorFactory
- a fully qualified name (String) of a Class that implements ArchiveDescriptorFactory
Scanner
about expected constructor forms.
-
SCANNER_DISCOVERY
static final java.lang.String SCANNER_DISCOVERY
Identifies a comma-separate list of values indicating the types of things we should auto-detect during scanning. Allowable values include:- "class" - discover classes - .class files are discovered as managed classes
- "hbm" - discover hbm mapping files - hbm.xml files are discovered as mapping files
-
IMPLICIT_NAMING_STRATEGY
static final java.lang.String IMPLICIT_NAMING_STRATEGY
Used to specify theImplicitNamingStrategy
class to use. The following short-names are defined for this setting:- "default" ->
ImplicitNamingStrategyJpaCompliantImpl
- "jpa" ->
ImplicitNamingStrategyJpaCompliantImpl
- "legacy-jpa" ->
ImplicitNamingStrategyLegacyJpaImpl
- "legacy-hbm" ->
ImplicitNamingStrategyLegacyHbmImpl
- "component-path" ->
ImplicitNamingStrategyComponentPathImpl
ImplicitNamingStrategyJpaCompliantImpl
. - "default" ->
-
PHYSICAL_NAMING_STRATEGY
static final java.lang.String PHYSICAL_NAMING_STRATEGY
Used to specify thePhysicalNamingStrategy
class to use.
-
ARTIFACT_PROCESSING_ORDER
static final java.lang.String ARTIFACT_PROCESSING_ORDER
Used to specify the order in which metadata sources should be processed. Value is a delimited-list whose elements are defined byMetadataSourceType
. Default is"hbm,class"
which indicates to processhbm.xml
files followed by annotations (combined withorm.xml
mappings).
-
KEYWORD_AUTO_QUOTING_ENABLED
static final java.lang.String KEYWORD_AUTO_QUOTING_ENABLED
Specifies whether to automatically quote any names that are deemed keywords. Auto-quoting is disabled by default. Set to true to enable it.- Since:
- 5.0
- See Also:
- Constant Field Values
-
SESSION_FACTORY_NAME
static final java.lang.String SESSION_FACTORY_NAME
Setting used to name the HibernateSessionFactory
. Naming the SessionFactory allows for it to be properly serialized across JVMs as long as the same name is used on each JVM. IfSESSION_FACTORY_NAME_IS_JNDI
is set totrue
, this is also the name under which the SessionFactory is bound into JNDI on startup and from which it can be obtained from JNDI.- See Also:
SESSION_FACTORY_NAME_IS_JNDI
,SessionFactoryRegistry
, Constant Field Values
-
SESSION_FACTORY_NAME_IS_JNDI
static final java.lang.String SESSION_FACTORY_NAME_IS_JNDI
Does the value defined bySESSION_FACTORY_NAME
represent a JNDI namespace into which theSessionFactory
should be bound and made accessible? Defaults totrue
for backwards compatibility. Set this tofalse
if naming a SessionFactory is needed for serialization purposes, but no writable JNDI context exists in the runtime environment or if the user simply does not want JNDI to be used.- See Also:
SESSION_FACTORY_NAME
, Constant Field Values
-
SHOW_SQL
static final java.lang.String SHOW_SQL
Enable logging of generated SQL to the console- See Also:
- Constant Field Values
-
FORMAT_SQL
static final java.lang.String FORMAT_SQL
Enable formatting of SQL logged to the console- See Also:
- Constant Field Values
-
USE_SQL_COMMENTS
static final java.lang.String USE_SQL_COMMENTS
Add comments to the generated SQL- See Also:
- Constant Field Values
-
MAX_FETCH_DEPTH
static final java.lang.String MAX_FETCH_DEPTH
Maximum depth of outer join fetching- See Also:
- Constant Field Values
-
DEFAULT_BATCH_FETCH_SIZE
static final java.lang.String DEFAULT_BATCH_FETCH_SIZE
The default batch size for batch fetching- See Also:
- Constant Field Values
-
USE_STREAMS_FOR_BINARY
static final java.lang.String USE_STREAMS_FOR_BINARY
Use java.io streams to read / write binary data from / to JDBC- See Also:
- Constant Field Values
-
USE_SCROLLABLE_RESULTSET
static final java.lang.String USE_SCROLLABLE_RESULTSET
Use JDBC scrollable ResultSets. This property is only necessary when there is no ConnectionProvider, ie. the user is supplying JDBC connections.- See Also:
- Constant Field Values
-
USE_GET_GENERATED_KEYS
static final java.lang.String USE_GET_GENERATED_KEYS
Tells the JDBC driver to attempt to retrieve row Id with the JDBC 3.0 PreparedStatement.getGeneratedKeys() method. In general, performance will be better if this property is set to true and the underlying JDBC driver supports getGeneratedKeys().- See Also:
- Constant Field Values
-
STATEMENT_FETCH_SIZE
static final java.lang.String STATEMENT_FETCH_SIZE
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed. If 0, JDBC driver default settings will be used.- See Also:
- Constant Field Values
-
STATEMENT_BATCH_SIZE
static final java.lang.String STATEMENT_BATCH_SIZE
Maximum JDBC batch size. A nonzero value enables batch updates.- See Also:
- Constant Field Values
-
BATCH_STRATEGY
static final java.lang.String BATCH_STRATEGY
Select a custom batcher.- See Also:
- Constant Field Values
-
BATCH_VERSIONED_DATA
static final java.lang.String BATCH_VERSIONED_DATA
Should versioned data be included in batching?- See Also:
- Constant Field Values
-
JDBC_TIME_ZONE
static final java.lang.String JDBC_TIME_ZONE
Default JDBC TimeZone. Unless specified, the JVM default TimeZone is going to be used by the underlying JDBC Driver.- Since:
- 5.2.3
- See Also:
- Constant Field Values
-
AUTO_CLOSE_SESSION
static final java.lang.String AUTO_CLOSE_SESSION
Enable automatic session close at end of transaction- See Also:
- Constant Field Values
-
FLUSH_BEFORE_COMPLETION
static final java.lang.String FLUSH_BEFORE_COMPLETION
Enable automatic flush during the JTA beforeCompletion() callback- See Also:
- Constant Field Values
-
ACQUIRE_CONNECTIONS
@Deprecated static final java.lang.String ACQUIRE_CONNECTIONS
Deprecated.(since 5.2) useCONNECTION_HANDLING
insteadSpecifies how Hibernate should acquire JDBC connections. Should generally only configure this orRELEASE_CONNECTIONS
, not both- Since:
- 5.1
- See Also:
ConnectionAcquisitionMode
, Constant Field Values
-
RELEASE_CONNECTIONS
@Deprecated static final java.lang.String RELEASE_CONNECTIONS
Deprecated.(since 5.2) useCONNECTION_HANDLING
insteadSpecifies how Hibernate should release JDBC connections. Should generally only configure this orACQUIRE_CONNECTIONS
, not both- See Also:
ConnectionReleaseMode
, Constant Field Values
-
CONNECTION_HANDLING
static final java.lang.String CONNECTION_HANDLING
Specifies how Hibernate should manage JDBC connections in terms of acquiring and releasing. SupersedesACQUIRE_CONNECTIONS
andRELEASE_CONNECTIONS
- Since:
- 5.2
- See Also:
PhysicalConnectionHandlingMode
, Constant Field Values
-
CURRENT_SESSION_CONTEXT_CLASS
static final java.lang.String CURRENT_SESSION_CONTEXT_CLASS
Context scoping impl forSessionFactory.getCurrentSession()
processing.- See Also:
- Constant Field Values
-
USE_IDENTIFIER_ROLLBACK
static final java.lang.String USE_IDENTIFIER_ROLLBACK
- See Also:
- Constant Field Values
-
USE_REFLECTION_OPTIMIZER
static final java.lang.String USE_REFLECTION_OPTIMIZER
Use bytecode libraries optimized property access- See Also:
- Constant Field Values
-
ENFORCE_LEGACY_PROXY_CLASSNAMES
static final java.lang.String ENFORCE_LEGACY_PROXY_CLASSNAMES
Configure the global BytecodeProvider implementation to generate class names matching the existing naming patterns. It is not a good idea to rely on a classname to check if a class is an Hibernate proxy, yet some frameworks are currently relying on this. This option is disabled by default and will log a deprecation warning when enabled.- See Also:
- Constant Field Values
-
ALLOW_ENHANCEMENT_AS_PROXY
static final java.lang.String ALLOW_ENHANCEMENT_AS_PROXY
Should Hibernate use enhanced entities "as a proxy"? E.g., when an application usesSession.load(java.lang.Class<T>, java.io.Serializable, org.hibernate.LockMode)
against an enhanced class, enabling this will allow Hibernate to create an "empty" instance of the enhanced class to act as the proxy - it contains just the identifier which is later used to trigger the base initialization but no other data is loaded Not enabling this (the legacy default behavior) would cause the "base" attributes to be loaded. Any lazy-group attributes would not be initialized. Applications using bytecode enhancement and switching to allowing this should be careful in use of the variousHibernate
methods such asHibernate.isInitialized(java.lang.Object)
,Hibernate.isPropertyInitialized(java.lang.Object, java.lang.String)
, etc - enabling this setting changes the results of those methods- See Also:
- Constant Field Values
-
QUERY_TRANSLATOR
static final java.lang.String QUERY_TRANSLATOR
The classname of the HQL query parser factory- See Also:
- Constant Field Values
-
QUERY_SUBSTITUTIONS
static final java.lang.String QUERY_SUBSTITUTIONS
A comma-separated list of token substitutions to use when translating a Hibernate query to SQL- See Also:
- Constant Field Values
-
QUERY_STARTUP_CHECKING
static final java.lang.String QUERY_STARTUP_CHECKING
Should named queries be checked during startup (the default is enabled). Mainly intended for test environments.- See Also:
- Constant Field Values
-
CONVENTIONAL_JAVA_CONSTANTS
static final java.lang.String CONVENTIONAL_JAVA_CONSTANTS
Setting which indicates whether or not Java constant follow the Java Naming conventions. Default istrue
. Existing applications may want to disable this (set itfalse
) if non-conventional Java constants are used. However, there is a significant performance overhead for using non-conventional Java constants since Hibernate cannot determine if aliases should be treated as Java constants or not.- Since:
- 5.2
- See Also:
- Constant Field Values
-
SQL_EXCEPTION_CONVERTER
static final java.lang.String SQL_EXCEPTION_CONVERTER
TheSQLExceptionConverter
to use for converting SQLExceptions to Hibernate's JDBCException hierarchy. The default is to use the configuredDialect
's preferred SQLExceptionConverter.- See Also:
- Constant Field Values
-
WRAP_RESULT_SETS
static final java.lang.String WRAP_RESULT_SETS
Enable wrapping of JDBC result sets in order to speed up column name lookups for broken JDBC drivers- See Also:
- Constant Field Values
-
NATIVE_EXCEPTION_HANDLING_51_COMPLIANCE
static final java.lang.String NATIVE_EXCEPTION_HANDLING_51_COMPLIANCE
Indicates if exception handling for a SessionFactory built via Hibernate's native bootstrapping should behave the same as native exception handling in Hibernate ORM 5.1, When set totrue
,HibernateException
will not be wrapped or converted according to the JPA specification. This setting will be ignored for a SessionFactory built via JPA bootstrapping. Values aretrue
orfalse
. Default value isfalse
- See Also:
- Constant Field Values
-
ORDER_UPDATES
static final java.lang.String ORDER_UPDATES
Enable ordering of update statements by primary key value- See Also:
- Constant Field Values
-
ORDER_INSERTS
static final java.lang.String ORDER_INSERTS
Enable ordering of insert statements for the purpose of more efficient JDBC batching.- See Also:
- Constant Field Values
-
DEFAULT_NULL_ORDERING
static final java.lang.String DEFAULT_NULL_ORDERING
Default precedence of null values inORDER BY
clause. Supported options:none
(default),first
,last
.- See Also:
- Constant Field Values
-
LOG_JDBC_WARNINGS
static final java.lang.String LOG_JDBC_WARNINGS
Enable fetching JDBC statement warning for logging. Values aretrue
orfalse
. Default value isDialect.isJdbcLogWarningsEnabledByDefault()
- Since:
- 5.1
- See Also:
- Constant Field Values
-
BEAN_CONTAINER
static final java.lang.String BEAN_CONTAINER
Identifies an explicitBeanContainer
to be used. Note that for CDI-based containers setting this is not necessary - simply pass the BeanManager to use viaCDI_BEAN_MANAGER
and optionally specifyAvailableSettings.DELAY_CDI_ACCESS
. This setting is more meant to integrate non-CDI bean containers such as Spring.- Since:
- 5.3
- See Also:
- Constant Field Values
-
C3P0_CONFIG_PREFIX
static final java.lang.String C3P0_CONFIG_PREFIX
A setting prefix used to indicate settings that target the hibernate-c3p0 integration- See Also:
- Constant Field Values
-
C3P0_MAX_SIZE
static final java.lang.String C3P0_MAX_SIZE
Maximum size of C3P0 connection pool- See Also:
- Constant Field Values
-
C3P0_MIN_SIZE
static final java.lang.String C3P0_MIN_SIZE
Minimum size of C3P0 connection pool- See Also:
- Constant Field Values
-
C3P0_TIMEOUT
static final java.lang.String C3P0_TIMEOUT
Maximum idle time for C3P0 connection pool- See Also:
- Constant Field Values
-
C3P0_MAX_STATEMENTS
static final java.lang.String C3P0_MAX_STATEMENTS
Maximum size of C3P0 statement cache- See Also:
- Constant Field Values
-
C3P0_ACQUIRE_INCREMENT
static final java.lang.String C3P0_ACQUIRE_INCREMENT
Number of connections acquired when pool is exhausted- See Also:
- Constant Field Values
-
C3P0_IDLE_TEST_PERIOD
static final java.lang.String C3P0_IDLE_TEST_PERIOD
Idle time before a C3P0 pooled connection is validated- See Also:
- Constant Field Values
-
PROXOOL_CONFIG_PREFIX
static final java.lang.String PROXOOL_CONFIG_PREFIX
A setting prefix used to indicate settings that target the hibernate-proxool integration- See Also:
- Constant Field Values
-
PROXOOL_PREFIX
@Deprecated static final java.lang.String PROXOOL_PREFIX
Deprecated.UsePROXOOL_CONFIG_PREFIX
insteadProxool/Hibernate property prefix- See Also:
- Constant Field Values
-
PROXOOL_XML
static final java.lang.String PROXOOL_XML
Proxool property to configure the Proxool Provider using an XML (/path/to/file.xml)- See Also:
- Constant Field Values
-
PROXOOL_PROPERTIES
static final java.lang.String PROXOOL_PROPERTIES
Proxool property to configure the Proxool Provider using a properties file (/path/to/proxool.properties)- See Also:
- Constant Field Values
-
PROXOOL_EXISTING_POOL
static final java.lang.String PROXOOL_EXISTING_POOL
Proxool property to configure the Proxool Provider from an already existing pool (true / false)- See Also:
- Constant Field Values
-
PROXOOL_POOL_ALIAS
static final java.lang.String PROXOOL_POOL_ALIAS
Proxool property with the Proxool pool alias to use (Required for PROXOOL_EXISTING_POOL, PROXOOL_PROPERTIES, or PROXOOL_XML)- See Also:
- Constant Field Values
-
CACHE_REGION_FACTORY
static final java.lang.String CACHE_REGION_FACTORY
TheRegionFactory
implementation. Can refer to:- an Object implementing
RegionFactory
- a Class implementing
RegionFactory
- FQN of a Class implementing
RegionFactory
- See Also:
- Constant Field Values
- an Object implementing
-
CACHE_KEYS_FACTORY
static final java.lang.String CACHE_KEYS_FACTORY
Allow control to specify theCacheKeysFactory
impl to use. Can refer to:- an Object implementing
CacheKeysFactory
- a Class implementing
CacheKeysFactory
- FQN of a Class implementing
CacheKeysFactory
- 'default' as a short name for
DefaultCacheKeysFactory
- 'simple' as a short name for
SimpleCacheKeysFactory
- Since:
- 5.2 - note that currently this is only honored for hibernate-infinispan
- See Also:
- Constant Field Values
- an Object implementing
-
CACHE_PROVIDER_CONFIG
static final java.lang.String CACHE_PROVIDER_CONFIG
The CacheProvider implementation class- See Also:
- Constant Field Values
-
USE_SECOND_LEVEL_CACHE
static final java.lang.String USE_SECOND_LEVEL_CACHE
Enable the second-level cache (enabled by default)- See Also:
- Constant Field Values
-
USE_QUERY_CACHE
static final java.lang.String USE_QUERY_CACHE
Enable the query cache (disabled by default)- See Also:
- Constant Field Values
-
QUERY_CACHE_FACTORY
static final java.lang.String QUERY_CACHE_FACTORY
TheTimestampsCacheFactory
implementation class.- See Also:
- Constant Field Values
-
CACHE_REGION_PREFIX
static final java.lang.String CACHE_REGION_PREFIX
The CacheProvider region name prefix- See Also:
- Constant Field Values
-
USE_MINIMAL_PUTS
static final java.lang.String USE_MINIMAL_PUTS
Optimize the cache for minimal puts instead of minimal gets- See Also:
- Constant Field Values
-
USE_STRUCTURED_CACHE
static final java.lang.String USE_STRUCTURED_CACHE
Enable use of structured second-level cache entries- See Also:
- Constant Field Values
-
AUTO_EVICT_COLLECTION_CACHE
static final java.lang.String AUTO_EVICT_COLLECTION_CACHE
Enables the automatic eviction of a bi-directional association's collection cache when an element in the ManyToOne collection is added/updated/removed without properly managing the change on the OneToMany side.- See Also:
- Constant Field Values
-
USE_DIRECT_REFERENCE_CACHE_ENTRIES
static final java.lang.String USE_DIRECT_REFERENCE_CACHE_ENTRIES
Enable direct storage of entity references into the second level cache when applicable (immutable data, etc). Default is to not store direct references.- See Also:
- Constant Field Values
-
DEFAULT_ENTITY_MODE
static final java.lang.String DEFAULT_ENTITY_MODE
The EntityMode in which set the Session opened from the SessionFactory.- See Also:
- Constant Field Values
-
GLOBALLY_QUOTED_IDENTIFIERS
static final java.lang.String GLOBALLY_QUOTED_IDENTIFIERS
Should all database identifiers be quoted. Atrue
/false
option.- See Also:
- Constant Field Values
-
GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS
static final java.lang.String GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS
AssumingGLOBALLY_QUOTED_IDENTIFIERS
, this allows such global quoting to skip column-definitions as defined byColumn
,JoinColumn
, etc. JPA states that column-definitions are subject to global quoting, so by default this setting isfalse
for JPA compliance. Set totrue
to avoid column-definitions being quoted due to global quoting (they will still be quoted if explicitly quoted in the annotation/xml).- See Also:
- Constant Field Values
-
CHECK_NULLABILITY
static final java.lang.String CHECK_NULLABILITY
Enable nullability checking. Raises an exception if a property marked as not-null is null. Default to false if Bean Validation is present in the classpath and Hibernate Annotations is used, true otherwise.- See Also:
- Constant Field Values
-
BYTECODE_PROVIDER
static final java.lang.String BYTECODE_PROVIDER
Pick which bytecode enhancing library to use. Currently supports javassist and bytebuddy, bytebuddy being the default since version 5.3.- See Also:
- Constant Field Values
-
JPAQL_STRICT_COMPLIANCE
static final java.lang.String JPAQL_STRICT_COMPLIANCE
- See Also:
- Constant Field Values
-
PREFER_POOLED_VALUES_LO
@Deprecated static final java.lang.String PREFER_POOLED_VALUES_LO
Deprecated.UsePREFERRED_POOLED_OPTIMIZER
insteadWhen using pooledoptimizers
, prefer interpreting the database value as the lower (lo) boundary. The default is to interpret it as the high boundary.- See Also:
- Constant Field Values
-
PREFERRED_POOLED_OPTIMIZER
static final java.lang.String PREFERRED_POOLED_OPTIMIZER
When a generator specified an increment-size and an optimizer was not explicitly specified, which of the "pooled" optimizers should be preferred? Can specify an optimizer short name or an Optimizer impl FQN.- See Also:
- Constant Field Values
-
QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES
@Deprecated static final java.lang.String QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES
Deprecated.in favor ofQUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
The maximum number of strong references maintained byQueryPlanCache
. Default is 128.- See Also:
- Constant Field Values
-
QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
@Deprecated static final java.lang.String QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
Deprecated.in favor ofQUERY_PLAN_CACHE_MAX_SIZE
The maximum number of soft references maintained byQueryPlanCache
. Default is 2048.- See Also:
- Constant Field Values
-
QUERY_PLAN_CACHE_MAX_SIZE
static final java.lang.String QUERY_PLAN_CACHE_MAX_SIZE
The maximum number of entries including: maintained byQueryPlanCache
. Default is 2048.- See Also:
- Constant Field Values
-
QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
static final java.lang.String QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
The maximum number ofParameterMetadataImpl
maintained byQueryPlanCache
. Default is 128.- See Also:
- Constant Field Values
-
NON_CONTEXTUAL_LOB_CREATION
static final java.lang.String NON_CONTEXTUAL_LOB_CREATION
Should we not use contextual LOB creation (aka based onConnection.createBlob()
et al).- See Also:
- Constant Field Values
-
HBM2DDL_AUTO
static final java.lang.String HBM2DDL_AUTO
Setting to perform SchemaManagementTool actions automatically as part of the SessionFactory lifecycle. Valid options are defined by theAction
enum. Interpreted in combination withHBM2DDL_DATABASE_ACTION
andHBM2DDL_SCRIPTS_ACTION
. If no value is specified, the default is "none" (Action.NONE
).- See Also:
Action
, Constant Field Values
-
HBM2DDL_DATABASE_ACTION
static final java.lang.String HBM2DDL_DATABASE_ACTION
Setting to perform SchemaManagementTool actions against the database directly via JDBC automatically as part of the SessionFactory lifecycle. Valid options are defined by theAction
enum. Interpreted in combination withHBM2DDL_AUTO
. If no value is specified, the default is "none" (Action.NONE
).- See Also:
Action
, Constant Field Values
-
HBM2DDL_SCRIPTS_ACTION
static final java.lang.String HBM2DDL_SCRIPTS_ACTION
Setting to perform SchemaManagementTool actions writing the commands into a DDL script file. Valid options are defined by theAction
enum. Interpreted in combination withHBM2DDL_AUTO
. If no value is specified, the default is "none" (Action.NONE
).- See Also:
Action
, Constant Field Values
-
HBM2DDL_CONNECTION
static final java.lang.String HBM2DDL_CONNECTION
Allows passing a specificConnection
instance to be used by SchemaManagementTool. May also be used to determine the values for "javax.persistence.database-product-name", "javax.persistence.database-major-version" and "javax.persistence.database-minor-version".- See Also:
- Constant Field Values
-
HBM2DDL_DB_NAME
static final java.lang.String HBM2DDL_DB_NAME
Specifies the name of the database provider in cases where a Connection to the underlying database is not available (aka, mainly in generating scripts). In such cases, a value for this setting *must* be specified. The value of this setting is expected to match the value returned byDatabaseMetaData.getDatabaseProductName()
for the target database. Additionally specifying "javax.persistence.database-major-version" and/or "javax.persistence.database-minor-version" may be required to understand exactly how to generate the required schema commands.
-
HBM2DDL_DB_MAJOR_VERSION
static final java.lang.String HBM2DDL_DB_MAJOR_VERSION
Specifies the major version of the underlying database, as would be returned byDatabaseMetaData.getDatabaseMajorVersion()
for the target database. This value is used to help more precisely determine how to perform schema generation tasks for the underlying database in cases where "javax.persistence.database-product-name" does not provide enough distinction.
-
HBM2DDL_DB_MINOR_VERSION
static final java.lang.String HBM2DDL_DB_MINOR_VERSION
Specifies the minor version of the underlying database, as would be returned byDatabaseMetaData.getDatabaseMinorVersion()
for the target database. This value is used to help more precisely determine how to perform schema generation tasks for the underlying database in cases where the combination of "javax.persistence.database-product-name" and "javax.persistence.database-major-version" does not provide enough distinction.
-
HBM2DDL_CREATE_SOURCE
static final java.lang.String HBM2DDL_CREATE_SOURCE
Specifies whether schema generation commands for schema creation are to be determine based on object/relational mapping metadata, DDL scripts, or a combination of the two. SeeSourceType
for valid set of values. If no value is specified, a default is assumed as follows:- if source scripts are specified (per "javax.persistence.schema-generation.create-script-source"),then "scripts" is assumed
- otherwise, "metadata" is assumed
- See Also:
SourceType
, Constant Field Values
-
HBM2DDL_DROP_SOURCE
static final java.lang.String HBM2DDL_DROP_SOURCE
Specifies whether schema generation commands for schema dropping are to be determine based on object/relational mapping metadata, DDL scripts, or a combination of the two. SeeSourceType
for valid set of values. If no value is specified, a default is assumed as follows:- if source scripts are specified (per "javax.persistence.schema-generation.drop-script-source"),then "scripts" is assumed
- otherwise, "metadata" is assumed
- See Also:
SourceType
, Constant Field Values
-
HBM2DDL_CREATE_SCRIPT_SOURCE
static final java.lang.String HBM2DDL_CREATE_SCRIPT_SOURCE
Specifies the CREATE script file as either aReader
configured for reading of the DDL script file or a string designating a fileURL
for the DDL script. Hibernate historically also acceptedHBM2DDL_IMPORT_FILES
for a similar purpose. This setting should be preferred overHBM2DDL_IMPORT_FILES
moving forward
-
HBM2DDL_DROP_SCRIPT_SOURCE
static final java.lang.String HBM2DDL_DROP_SCRIPT_SOURCE
Specifies the DROP script file as either aReader
configured for reading of the DDL script file or a string designating a fileURL
for the DDL script.- See Also:
HBM2DDL_DROP_SOURCE
, Constant Field Values
-
HBM2DDL_SCRIPTS_CREATE_TARGET
static final java.lang.String HBM2DDL_SCRIPTS_CREATE_TARGET
For cases where the "javax.persistence.schema-generation.scripts.action" value indicates that schema creation commands should be written to DDL script file, "javax.persistence.schema-generation.scripts.create-target" specifies either aWriter
configured for output of the DDL script or a string specifying the file URL for the DDL script.- See Also:
HBM2DDL_SCRIPTS_ACTION
, Constant Field Values
-
HBM2DDL_SCRIPTS_DROP_TARGET
static final java.lang.String HBM2DDL_SCRIPTS_DROP_TARGET
For cases where the "javax.persistence.schema-generation.scripts.action" value indicates that schema drop commands should be written to DDL script file, "javax.persistence.schema-generation.scripts.drop-target" specifies either aWriter
configured for output of the DDL script or a string specifying the file URL for the DDL script.- See Also:
HBM2DDL_SCRIPTS_ACTION
, Constant Field Values
-
HBM2DDL_IMPORT_FILES
static final java.lang.String HBM2DDL_IMPORT_FILES
Comma-separated names of the optional files containing SQL DML statements executed during the SessionFactory creation. File order matters, the statements of a give file are executed before the statements of the following files. These statements are only executed if the schema is created ie if hibernate.hbm2ddl.auto is set to create or create-drop. The default value is /import.sqlHBM2DDL_CREATE_SCRIPT_SOURCE
/HBM2DDL_DROP_SCRIPT_SOURCE
should be preferred moving forward- See Also:
- Constant Field Values
-
HBM2DDL_LOAD_SCRIPT_SOURCE
static final java.lang.String HBM2DDL_LOAD_SCRIPT_SOURCE
JPA variant ofHBM2DDL_IMPORT_FILES
Specifies aReader
configured for reading of the SQL load script or a string designating the fileURL
for the SQL load script. A "SQL load script" is a script that performs some database initialization (INSERT, etc).- See Also:
- Constant Field Values
-
HBM2DDL_IMPORT_FILES_SQL_EXTRACTOR
static final java.lang.String HBM2DDL_IMPORT_FILES_SQL_EXTRACTOR
Reference to theImportSqlCommandExtractor
implementation class to use for parsing source/import files as defined byHBM2DDL_CREATE_SCRIPT_SOURCE
,HBM2DDL_DROP_SCRIPT_SOURCE
orHBM2DDL_IMPORT_FILES
. Reference may refer to an instance, a Class implementing ImportSqlCommandExtractor of the FQN of the ImportSqlCommandExtractor implementation. If the FQN is given, the implementation must provide a no-arg constructor. The default value isSingleLineSqlCommandExtractor
.- See Also:
- Constant Field Values
-
HBM2DLL_CREATE_NAMESPACES
static final java.lang.String HBM2DLL_CREATE_NAMESPACES
Specifies whether to automatically create also the database schema/catalog. The default is false.- Since:
- 5.0
- See Also:
- Constant Field Values
-
HBM2DLL_CREATE_SCHEMAS
static final java.lang.String HBM2DLL_CREATE_SCHEMAS
The JPA variant ofHBM2DLL_CREATE_NAMESPACES
Specifies whether the persistence provider is to create the database schema(s) in addition to creating database objects (tables, sequences, constraints, etc). The value of this boolean property should be set totrue
if the persistence provider is to create schemas in the database or to generate DDL that contains "CREATE SCHEMA" commands. If this property is not supplied (or is explicitlyfalse
), the provider should not attempt to create database schemas.- See Also:
- Constant Field Values
-
HBM2DDL_FILTER_PROVIDER
static final java.lang.String HBM2DDL_FILTER_PROVIDER
Used to specify theSchemaFilterProvider
to be used by create, drop, migrate and validate operations on the database schema. SchemaFilterProvider provides filters that can be used to limit the scope of these operations to specific namespaces, tables and sequences. All objects are included by default.- Since:
- 5.1
- See Also:
- Constant Field Values
-
HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY
static final java.lang.String HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY
Setting to choose the strategy used to access the JDBC Metadata. Valid options are defined by theJdbcMetadaAccessStrategy
enum.JdbcMetadaAccessStrategy.GROUPED
is the default value.- See Also:
JdbcMetadaAccessStrategy
, Constant Field Values
-
HBM2DDL_DELIMITER
static final java.lang.String HBM2DDL_DELIMITER
Identifies the delimiter to use to separate schema management statements in script outputs- See Also:
- Constant Field Values
-
HBM2DDL_CHARSET_NAME
static final java.lang.String HBM2DDL_CHARSET_NAME
The name of the charset used by the schema generation resource. Without specifying this configuration property, the JVM default charset is used.- Since:
- 5.2.3
- See Also:
- Constant Field Values
-
HBM2DDL_HALT_ON_ERROR
static final java.lang.String HBM2DDL_HALT_ON_ERROR
Whether the schema migration tool should halt on error, therefore terminating the bootstrap process.- Since:
- 5.2.4
- See Also:
- Constant Field Values
-
CUSTOM_ENTITY_DIRTINESS_STRATEGY
static final java.lang.String CUSTOM_ENTITY_DIRTINESS_STRATEGY
Setting to identify aCustomEntityDirtinessStrategy
to use. May point to either a class name or instance.- See Also:
- Constant Field Values
-
USE_ENTITY_WHERE_CLAUSE_FOR_COLLECTIONS
static final java.lang.String USE_ENTITY_WHERE_CLAUSE_FOR_COLLECTIONS
Controls whether an entity's "where" clause, mapped using@Where(clause="....")
or<entity ... where="...">
, is taken into account when loading one-to-many or many-to-many collections of that type of entity. This setting has no affect on collections of embeddable values containing an association to that type of entity. When `true` (the default), the entity's "where" clause will be taken into account when loading one-to-many or many-to-many collections of that type of entity. `false` indicates that the entity's "where" clause will be ignored when loading one-to-many or many-to-many collections of that type of entity.- See Also:
- Constant Field Values
-
MULTI_TENANT
static final java.lang.String MULTI_TENANT
Strategy for multi-tenancy.- Since:
- 4.0
- See Also:
MultiTenancyStrategy
, Constant Field Values
-
MULTI_TENANT_CONNECTION_PROVIDER
static final java.lang.String MULTI_TENANT_CONNECTION_PROVIDER
Names aMultiTenantConnectionProvider
implementation to use. As MultiTenantConnectionProvider is also a service, can be configured directly through theStandardServiceRegistryBuilder
- Since:
- 4.1
- See Also:
- Constant Field Values
-
MULTI_TENANT_IDENTIFIER_RESOLVER
static final java.lang.String MULTI_TENANT_IDENTIFIER_RESOLVER
Names aCurrentTenantIdentifierResolver
implementation to use. Can be- CurrentTenantIdentifierResolver instance
- CurrentTenantIdentifierResolver implementation
Class
reference - CurrentTenantIdentifierResolver implementation class name
- Since:
- 4.1
- See Also:
- Constant Field Values
-
INTERCEPTOR
static final java.lang.String INTERCEPTOR
Names aInterceptor
implementation to be applied to theSessionFactory
and propagated to each Session created from the SessionFactory. This setting identifies an Interceptor which is effectively a singleton across all the Sessions opened from the SessionFactory to which it is applied; the same instance will be passed to each Session. SeeSESSION_SCOPED_INTERCEPTOR
for an approach to create unique Interceptor instances for each Session Can reference- Interceptor instance
- Interceptor implementation
Class
reference - Interceptor implementation class name
- Since:
- 5.0
- See Also:
- Constant Field Values
-
SESSION_SCOPED_INTERCEPTOR
static final java.lang.String SESSION_SCOPED_INTERCEPTOR
Names aInterceptor
implementation to be applied to theSessionFactory
and propagated to each Session created from the SessionFactory. This setting identifies an Interceptor implementation that is to be applied to every Session opened from the SessionFactory, but unlikeINTERCEPTOR
a unique instance of the Interceptor is used for each Session. Can reference- Interceptor implementation
Class
reference - Interceptor implementation class name
Supplier
instance which is used to retrieve the interceptor
- Since:
- 5.2
- See Also:
- Constant Field Values
- Interceptor implementation
-
STATEMENT_INSPECTOR
static final java.lang.String STATEMENT_INSPECTOR
Names aStatementInspector
implementation to be applied to theSessionFactory
. Can reference- StatementInspector instance
- StatementInspector implementation
Class
reference - StatementInspector implementation class name (FQN)
- Since:
- 5.0
- See Also:
- Constant Field Values
-
ENABLE_LAZY_LOAD_NO_TRANS
static final java.lang.String ENABLE_LAZY_LOAD_NO_TRANS
- See Also:
- Constant Field Values
-
HQL_BULK_ID_STRATEGY
static final java.lang.String HQL_BULK_ID_STRATEGY
- See Also:
- Constant Field Values
-
BATCH_FETCH_STYLE
static final java.lang.String BATCH_FETCH_STYLE
Names theBatchFetchStyle
to use. Can specify either theBatchFetchStyle
name (insensitively), or aBatchFetchStyle
instance.LEGACY
is the default value.- See Also:
- Constant Field Values
-
DELAY_ENTITY_LOADER_CREATIONS
static final java.lang.String DELAY_ENTITY_LOADER_CREATIONS
Controls how the individual Loaders for an entity are created. When `true` (the default), only the minimal set of Loaders are created. These include the handling forLockMode.READ
andLockMode.NONE
as well as specialized Loaders for merge and refresh handling. `false` indicates that all loaders should be created up front- Since:
- 5.3
- See Also:
- Constant Field Values
-
JTA_TRACK_BY_THREAD
static final java.lang.String JTA_TRACK_BY_THREAD
A transaction can be rolled back by another thread ("tracking by thread") -- not the original application. Examples of this include a JTA transaction timeout handled by a background reaper thread. The ability to handle this situation requires checking the Thread ID every time Session is called. This can certainly have performance considerations. Default istrue
(enabled).- See Also:
- Constant Field Values
-
ENABLE_SYNONYMS
static final java.lang.String ENABLE_SYNONYMS
If enabled, allows schema update and validation to support synonyms. Due to the possibility that this would return duplicate tables (especially in Oracle), this is disabled by default.- See Also:
- Constant Field Values
-
EXTRA_PHYSICAL_TABLE_TYPES
static final java.lang.String EXTRA_PHYSICAL_TABLE_TYPES
Identifies a comma-separate list of values to specify extra table types, other than the default "TABLE" value, to recognize as defining a physical table by schema update, creation and validation.- Since:
- 5.0
- See Also:
- Constant Field Values
-
UNIQUE_CONSTRAINT_SCHEMA_UPDATE_STRATEGY
static final java.lang.String UNIQUE_CONSTRAINT_SCHEMA_UPDATE_STRATEGY
Unique columns and unique keys both use unique constraints in most dialects. SchemaUpdate needs to create these constraints, but DB's support for finding existing constraints is extremely inconsistent. Further, non-explicitly-named unique constraints use randomly generated characters. Therefore, select from these strategies.UniqueConstraintSchemaUpdateStrategy.DROP_RECREATE_QUIETLY
(DEFAULT): Attempt to drop, then (re-)create each unique constraint. Ignore any exceptions thrown.UniqueConstraintSchemaUpdateStrategy.RECREATE_QUIETLY
: attempt to (re-)create unique constraints, ignoring exceptions thrown if the constraint already existedUniqueConstraintSchemaUpdateStrategy.SKIP
: do not attempt to create unique constraints on a schema update- See Also:
- Constant Field Values
-
GENERATE_STATISTICS
static final java.lang.String GENERATE_STATISTICS
Enable statistics collection- See Also:
- Constant Field Values
-
LOG_SESSION_METRICS
static final java.lang.String LOG_SESSION_METRICS
A setting to control whether toStatisticalLoggingSessionEventListener
is enabled on all Sessions (unless explicitly disabled for a given Session). The default value of this setting is determined by the value forGENERATE_STATISTICS
, meaning that if collection of statistics is enabled logging of Session metrics is enabled by default too.- See Also:
- Constant Field Values
-
AUTO_SESSION_EVENTS_LISTENER
static final java.lang.String AUTO_SESSION_EVENTS_LISTENER
Defines a defaultSessionEventListener
to be applied to opened Sessions.- See Also:
- Constant Field Values
-
PROCEDURE_NULL_PARAM_PASSING
@Deprecated static final java.lang.String PROCEDURE_NULL_PARAM_PASSING
Deprecated.(5.3) Hibernate determines it implicitlyGlobal setting for whether NULL parameter bindings should be passed to database procedure/function calls as part ofProcedureCall
handling. Implicitly Hibernate will not pass the NULL, the intention being to allow any default argument values to be applied. This defines a global setting, which can them be controlled per parameter viaParameterRegistration.enablePassingNulls(boolean)
Values aretrue
(pass the NULLs) orfalse
(do not pass the NULLs).- See Also:
- Constant Field Values
-
CREATE_EMPTY_COMPOSITES_ENABLED
static final java.lang.String CREATE_EMPTY_COMPOSITES_ENABLED
[EXPERIMENTAL] Enable instantiation of composite/embedded objects when all of its attribute values arenull
. The default (and historical) behavior is that anull
reference will be used to represent the composite when all of its attributes arenull
This is an experimental feature that has known issues. It should not be used in production until it is stabilized. See Hibernate Jira issue HHH-11936 for details.- Since:
- 5.1
- See Also:
- Constant Field Values
-
ALLOW_JTA_TRANSACTION_ACCESS
static final java.lang.String ALLOW_JTA_TRANSACTION_ACCESS
Setting that allows access to the underlyingTransaction
, even when using a JTA since normal JPA operations prohibit this behavior. Values aretrue
grants access,false
does not. The default behavior is to allow access unless the session is bootstrapped via JPA.- See Also:
- Constant Field Values
-
ALLOW_UPDATE_OUTSIDE_TRANSACTION
static final java.lang.String ALLOW_UPDATE_OUTSIDE_TRANSACTION
Setting that allows to perform update operations outside of a transaction boundary. Since version 5.2 Hibernate conforms with the JPA specification and does not allow anymore to flush any update out of a transaction boundary. Values are:true
to allow flush operations out of a transaction,false
to disallow. The default behavior isfalse
- Since:
- 5.2
- See Also:
- Constant Field Values
-
COLLECTION_JOIN_SUBQUERY
static final java.lang.String COLLECTION_JOIN_SUBQUERY
Setting which indicates whether or not the new JOINS over collection tables should be rewritten to subqueries. Default istrue
. Existing applications may want to disable this (set itfalse
) for upgrade compatibility.- Since:
- 5.2
- See Also:
- Constant Field Values
-
ALLOW_REFRESH_DETACHED_ENTITY
static final java.lang.String ALLOW_REFRESH_DETACHED_ENTITY
Setting that allows to callEntityManager.refresh(Object)
orSession.refresh(Object)
on a detached entity instance when theSession
is obtained from a JPAEntityManager
).true
permits the refresh,false
does not permit the detached instance refresh and anIllegalArgumentException
is thrown. The default value isfalse
when the Session is bootstrapped via JPAEntityManagerFactory
, otherwise istrue
- Since:
- 5.2
- See Also:
- Constant Field Values
-
MERGE_ENTITY_COPY_OBSERVER
static final java.lang.String MERGE_ENTITY_COPY_OBSERVER
Setting that specifies how Hibernate will respond when multiple representations of the same persistent entity ("entity copy") is detected while merging. The possible values are:- disallow (the default): throws
IllegalStateException
if an entity copy is detected - allow: performs the merge operation on each entity copy that is detected
- log: (provided for testing only) performs the merge operation on each entity copy that is detected and logs information about the entity copies.
This setting requires DEBUG logging be enabled for
EntityCopyAllowedLoggedObserver
.
EntityCopyObserver
and settinghibernate.event.merge.entity_copy_observer
to the class name. When this property is set toallow
orlog
, Hibernate will merge each entity copy detected while cascading the merge operation. In the process of merging each entity copy, Hibernate will cascade the merge operation from each entity copy to its associations withCascadeType.MERGE
orCascadeType.ALL
. The entity state resulting from merging an entity copy will be overwritten when another entity copy is merged.- Since:
- 4.3
- See Also:
- Constant Field Values
- disallow (the default): throws
-
USE_LEGACY_LIMIT_HANDLERS
static final java.lang.String USE_LEGACY_LIMIT_HANDLERS
Setting which indicates whether or not to useLimitHandler
implementations that sacrifices performance optimizations to allow legacy 4.x limit behavior. Legacy 4.x behavior favored performing pagination in-memory by avoiding the use of the offset value, which is overall poor performance. In 5.x, the limit handler behavior favors performance thus if the dialect doesn't support offsets, an exception is thrown instead. Default isfalse
.- Since:
- 5.2.5
- See Also:
- Constant Field Values
-
VALIDATE_QUERY_PARAMETERS
static final java.lang.String VALIDATE_QUERY_PARAMETERS
Setting which indicates ifQuery.setParameter(javax.persistence.Parameter<java.time.Instant>, java.time.Instant, javax.persistence.TemporalType)
should not perform parameters validation This setting is applied only when the Session is bootstrapped via JPAEntityManagerFactory
Values are:true
indicates the validation should be performed,false
otherwiseThe default value is
true
when the Session is bootstrapped via JPAEntityManagerFactory
, otherwise isfalse
- See Also:
- Constant Field Values
-
CRITERIA_LITERAL_HANDLING_MODE
static final java.lang.String CRITERIA_LITERAL_HANDLING_MODE
By default, Criteria queries uses bind parameters for any literal that is not a numeric value. However, to increase the likelihood of JDBC statement caching, you might want to use bind parameters for numeric values too. TheLiteralHandlingMode.BIND
mode will use bind variables for any literal value. TheLiteralHandlingMode.INLINE
mode will inline literal values as-is. To prevent SQL injection, never useLiteralHandlingMode.INLINE
with String variables. Always use constants with theLiteralHandlingMode.INLINE
mode. Valid options are defined by theLiteralHandlingMode
enum. The default value isLiteralHandlingMode.AUTO
- Since:
- 5.2.12
- See Also:
LiteralHandlingMode
, Constant Field Values
-
PREFER_GENERATOR_NAME_AS_DEFAULT_SEQUENCE_NAME
static final java.lang.String PREFER_GENERATOR_NAME_AS_DEFAULT_SEQUENCE_NAME
True/false setting indicating whether the value specified forGeneratedValue.generator()
should be used as the sequence/table name when no matchingSequenceGenerator
orTableGenerator
is found. The default value is `true` meaning thatGeneratedValue.generator()
will be used as the sequence/table name by default. Users migrating from earlier versions using the legacy `hibernate_sequence` name should disable this setting.- See Also:
- Constant Field Values
-
JPA_TRANSACTION_COMPLIANCE
static final java.lang.String JPA_TRANSACTION_COMPLIANCE
Should Hibernate'sTransaction
behave as defined by the spec for JPA'sEntityTransaction
since it extends the JPA one.- Since:
- 5.3
- See Also:
JpaCompliance.isJpaTransactionComplianceEnabled()
, Constant Field Values
-
JPA_QUERY_COMPLIANCE
static final java.lang.String JPA_QUERY_COMPLIANCE
Controls whether Hibernate's handling ofQuery
(JPQL, Criteria and native-query) should strictly follow the JPA spec. This includes both in terms of parsing or translating a query as well as calls to theQuery
methods throwing spec defined exceptions where as Hibernate might not. Deviations result in an exception if enabled- Since:
- 5.3
- See Also:
JpaCompliance.isJpaQueryComplianceEnabled()
, Constant Field Values
-
JPA_LIST_COMPLIANCE
static final java.lang.String JPA_LIST_COMPLIANCE
Controls whether Hibernate should recognize what it considers a "bag" (PersistentBag
) as a List (PersistentList
) or as a bag. If enabled, we will recognize it as a List whereOrderColumn
is just missing (and its defaults will apply).- Since:
- 5.3
- See Also:
JpaCompliance.isJpaListComplianceEnabled()
, Constant Field Values
-
JPA_CLOSED_COMPLIANCE
static final java.lang.String JPA_CLOSED_COMPLIANCE
JPA defines specific exceptions on specific methods when called onEntityManager
andEntityManagerFactory
when those objects have been closed. This setting controls whether the spec defined behavior or Hibernate's behavior will be used. If enabled Hibernate will operate in the JPA specified way throwing exceptions when the spec says it should.- Since:
- 5.3
- See Also:
JpaCompliance.isJpaClosedComplianceEnabled()
, Constant Field Values
-
JPA_PROXY_COMPLIANCE
static final java.lang.String JPA_PROXY_COMPLIANCE
The JPA spec says that aEntityNotFoundException
should be thrown when accessing an entity Proxy which does not have an associated table row in the database. Traditionally, Hibernate does not initialize an entity Proxy when accessing its identifier since we already know the identifier value, hence we can save a database roundtrip. If enabled Hibernate will initialize the entity Proxy even when accessing its identifier.- Since:
- 5.2.13
- See Also:
JpaCompliance.isJpaProxyComplianceEnabled()
, Constant Field Values
-
JPA_CACHING_COMPLIANCE
static final java.lang.String JPA_CACHING_COMPLIANCE
- Since:
- 5.3
- See Also:
JpaCompliance.isJpaCacheComplianceEnabled()
, Constant Field Values
-
JPA_ID_GENERATOR_GLOBAL_SCOPE_COMPLIANCE
static final java.lang.String JPA_ID_GENERATOR_GLOBAL_SCOPE_COMPLIANCE
Determine if the scope ofTableGenerator.name()
andSequenceGenerator.name()
should be considered globally or locally defined. If enabled, the names will considered globally scoped so defining two different generators with the same name will cause a name collision and an exception will be thrown during the bootstrap phase.- Since:
- 5.2.17
- See Also:
JpaCompliance.isGlobalGeneratorScopeEnabled()
, Constant Field Values
-
TABLE_GENERATOR_STORE_LAST_USED
static final java.lang.String TABLE_GENERATOR_STORE_LAST_USED
True/False setting indicating if the value stored in the table used by theTableGenerator
is the last value generated or the next value to be used. The default value is true.- Since:
- 5.3
- See Also:
- Constant Field Values
-
FAIL_ON_PAGINATION_OVER_COLLECTION_FETCH
static final java.lang.String FAIL_ON_PAGINATION_OVER_COLLECTION_FETCH
Raises an exception when in-memory pagination over collection fetch is about to be performed. Disabled by default. Set to true to enable.- Since:
- 5.2.13
- See Also:
- Constant Field Values
-
IMMUTABLE_ENTITY_UPDATE_QUERY_HANDLING_MODE
static final java.lang.String IMMUTABLE_ENTITY_UPDATE_QUERY_HANDLING_MODE
This setting defines howImmutable
entities are handled when executing a bulk updateQuery
. By default, the (ImmutableEntityUpdateQueryHandlingMode.WARNING
) mode is used, meaning that a warning log message is issued when anImmutable
entity is to be updated via a bulk update statement. If the (ImmutableEntityUpdateQueryHandlingMode.EXCEPTION
) mode is used, then aHibernateException
is thrown instead. Valid options are defined by theImmutableEntityUpdateQueryHandlingMode
enum. The default value isImmutableEntityUpdateQueryHandlingMode.WARNING
- Since:
- 5.2.17
- See Also:
ImmutableEntityUpdateQueryHandlingMode
, Constant Field Values
-
IN_CLAUSE_PARAMETER_PADDING
static final java.lang.String IN_CLAUSE_PARAMETER_PADDING
By default, the IN clause expands to include all bind parameter values. However, for database systems supporting execution plan caching, there's a better chance of hitting the cache if the number of possible IN clause parameters lowers. For this reason, we can expand the bind parameters to power-of-two: 4, 8, 16, 32, 64. This way, an IN clause with 5, 6, or 7 bind parameters will use the 8 IN clause, therefore reusing its execution plan. If you want to activate this feature, you need to set this property totrue
. The default value isfalse
.- Since:
- 5.2.17
- See Also:
- Constant Field Values
-
JACC_CONTEXT_ID
@Deprecated static final java.lang.String JACC_CONTEXT_ID
Deprecated.Support for JACC will be removed in 6.0- See Also:
- Constant Field Values
-
JACC_PREFIX
@Deprecated static final java.lang.String JACC_PREFIX
Deprecated.Support for JACC will be removed in 6.0- See Also:
- Constant Field Values
-
JACC_ENABLED
@Deprecated static final java.lang.String JACC_ENABLED
Deprecated.Support for JACC will be removed in 6.0- See Also:
- Constant Field Values
-
JMX_ENABLED
@Deprecated static final java.lang.String JMX_ENABLED
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846- See Also:
- Constant Field Values
-
JMX_PLATFORM_SERVER
@Deprecated static final java.lang.String JMX_PLATFORM_SERVER
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846- See Also:
- Constant Field Values
-
JMX_AGENT_ID
@Deprecated static final java.lang.String JMX_AGENT_ID
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846- See Also:
- Constant Field Values
-
JMX_DOMAIN_NAME
@Deprecated static final java.lang.String JMX_DOMAIN_NAME
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846- See Also:
- Constant Field Values
-
JMX_SF_NAME
@Deprecated static final java.lang.String JMX_SF_NAME
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846- See Also:
- Constant Field Values
-
JMX_DEFAULT_OBJ_NAME_DOMAIN
@Deprecated static final java.lang.String JMX_DEFAULT_OBJ_NAME_DOMAIN
Deprecated.Scheduled for removal in 6.0; see https://hibernate.atlassian.net/browse/HHH-14847 and https://hibernate.atlassian.net/browse/HHH-14846- See Also:
- Constant Field Values
-
-