public interface AvailableSettings
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACQUIRE_CONNECTIONS
Specifies how Hibernate should acquire JDBC connections.
|
static java.lang.String |
APP_CLASSLOADER
Deprecated.
Use
CLASSLOADERS instead |
static 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 transaction
|
static 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 default
SessionEventListener to be applied to opened Sessions. |
static java.lang.String |
AUTOCOMMIT
Names the JDBC autocommit mode
|
static java.lang.String |
BATCH_FETCH_STYLE
Names the
BatchFetchStyle 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 |
BYTECODE_PROVIDER |
static java.lang.String |
C3P0_ACQUIRE_INCREMENT
Number of connections acquired when pool is exhausted
|
static java.lang.String |
C3P0_CONFIG_PREFIX
A setting prefix used to indicate settings that target the hibernate-c3p0 integration
|
static java.lang.String |
C3P0_IDLE_TEST_PERIOD
Idle time before a C3P0 pooled connection is validated
|
static java.lang.String |
C3P0_MAX_SIZE
Maximum size of C3P0 connection pool
|
static java.lang.String |
C3P0_MAX_STATEMENTS
Maximum size of C3P0 statement cache
|
static java.lang.String |
C3P0_MIN_SIZE
Minimum size of C3P0 connection pool
|
static java.lang.String |
C3P0_TIMEOUT
Maximum idle time for C3P0 connection pool
|
static java.lang.String |
CACHE_KEYS_FACTORY
Allow control to specify the
CacheKeysFactory impl to use. |
static java.lang.String |
CACHE_PROVIDER_CONFIG
The CacheProvider implementation class
|
static java.lang.String |
CACHE_REGION_FACTORY
The
RegionFactory implementation. |
static java.lang.String |
CACHE_REGION_PREFIX
The CacheProvider region name prefix
|
static java.lang.String |
CHECK_NULLABILITY
Enable nullability checking.
|
static java.lang.String |
CLASSLOADERS
Used to define a
Collection of the ClassLoader 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_PREFIX
Names a prefix used to define arbitrary JDBC connection properties.
|
static java.lang.String |
CONNECTION_PROVIDER
Names the
ConnectionProvider to use for obtaining
JDBC connections. |
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 are
null . |
static java.lang.String |
CURRENT_SESSION_CONTEXT_CLASS
Context scoping impl for
SessionFactory.getCurrentSession() processing. |
static java.lang.String |
CUSTOM_ENTITY_DIRTINESS_STRATEGY
Setting to identify a
CustomEntityDirtinessStrategy to use. |
static java.lang.String |
DATASOURCE
Names a
DataSource . |
static java.lang.String |
DEFAULT_BATCH_FETCH_SIZE
The default batch size for batch fetching
|
static java.lang.String |
DEFAULT_CACHE_CONCURRENCY_STRATEGY
Setting used to give the name of the default
CacheConcurrencyStrategy
to use when either @Cacheable or
@Cache is used. |
static java.lang.String |
DEFAULT_CATALOG
A default database catalog name to use for unqualified tablenames
|
static 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 in
ORDER BY clause. |
static java.lang.String |
DEFAULT_SCHEMA
A default database schema (owner) name to use for unqualified tablenames
|
static java.lang.String |
DIALECT
Names the Hibernate SQL
Dialect class |
static java.lang.String |
DIALECT_RESOLVERS
Names any additional
DialectResolver implementations to
register with the standard DialectFactory . |
static java.lang.String |
DRIVER
Names the JDBC driver class
|
static 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 |
ENVIRONMENT_CLASSLOADER
Deprecated.
Use
CLASSLOADERS instead |
static 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 |
FLUSH_BEFORE_COMPLETION
Enable automatic flush during the JTA beforeCompletion() callback
|
static java.lang.String |
FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT |
static java.lang.String |
FORMAT_SQL
Enable formatting of SQL logged to the console
|
static java.lang.String |
GENERATE_STATISTICS
Enable statistics collection
|
static java.lang.String |
GLOBALLY_QUOTED_IDENTIFIERS
Should all database identifiers be quoted.
|
static java.lang.String |
GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS
Assuming
GLOBALLY_QUOTED_IDENTIFIERS , this allows such global quoting
to skip column-definitions as defined by Column ,
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_CONNECTION
Allows passing a specific
Connection instance to be used by SchemaManagementTool. |
static java.lang.String |
HBM2DDL_CREATE_SCRIPT_SOURCE
Specifies the CREATE script file as either a
Reader configured for reading of the DDL script
file or a string designating a file URL 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 by
DatabaseMetaData.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 by
DatabaseMetaData.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 outputs
|
static java.lang.String |
HBM2DDL_DROP_SCRIPT_SOURCE
Specifies the DROP script file as either a
Reader configured for reading of the DDL script
file or a string designating a file URL 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 the
SchemaFilterProvider to be used by
create, drop, migrate and validate operations on the database schema. |
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 the
ImportSqlCommandExtractor implementation class
to use for parsing source/import files as defined by HBM2DDL_CREATE_SCRIPT_SOURCE ,
HBM2DDL_DROP_SCRIPT_SOURCE or HBM2DDL_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 of
HBM2DDL_IMPORT_FILES
Specifies a Reader configured for reading of the SQL load script or a string designating the
file URL for the SQL load script. |
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 a
Writer 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 a
Writer 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 of
HBM2DLL_CREATE_NAMESPACES
Specifies whether the persistence provider is to create the database schema(s) in addition to creating
database objects (tables, sequences, constraints, etc). |
static java.lang.String |
HIBERNATE_CLASSLOADER
Deprecated.
Use
CLASSLOADERS instead |
static 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 |
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 the
ImplicitNamingStrategy class to use. |
static java.lang.String |
INTERCEPTOR
Names a
Interceptor implementation to be applied to the SessionFactory
Can reference
Interceptor instance
Interceptor implementation Class reference
Interceptor implementation class name
|
static java.lang.String |
ISOLATION
Names the JDBC transaction isolation level
|
static java.lang.String |
JACC_CONTEXT_ID |
static java.lang.String |
JACC_ENABLED |
static java.lang.String |
JACC_PREFIX |
static java.lang.String |
JMX_AGENT_ID |
static java.lang.String |
JMX_DEFAULT_OBJ_NAME_DOMAIN |
static java.lang.String |
JMX_DOMAIN_NAME |
static java.lang.String |
JMX_ENABLED |
static java.lang.String |
JMX_PLATFORM_SERVER |
static java.lang.String |
JMX_SF_NAME |
static java.lang.String |
JNDI_CLASS
Names the JNDI
InitialContext class. |
static java.lang.String |
JNDI_PREFIX
Names a prefix used to define arbitrary JNDI
InitialContext properties. |
static java.lang.String |
JNDI_URL
Names the JNDI provider/connection url
|
static 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 cache
TransactionManager references. |
static java.lang.String |
JTA_CACHE_UT
A configuration value key used to indicate that it is safe to cache
UserTransaction references. |
static java.lang.String |
JTA_PLATFORM
Names the
JtaPlatform implementation to use for integrating
with JTA systems. |
static java.lang.String |
JTA_PLATFORM_RESOLVER
Names the
JtaPlatformResolver 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 to
StatisticalLoggingSessionEventListener is
enabled on all Sessions (unless explicitly disabled for a given Session). |
static java.lang.String |
MAX_FETCH_DEPTH
Maximum depth of outer join fetching
|
static java.lang.String |
MULTI_TENANT
Strategy for multi-tenancy.
|
static java.lang.String |
MULTI_TENANT_CONNECTION_PROVIDER
Names a
MultiTenantConnectionProvider implementation to
use. |
static java.lang.String |
MULTI_TENANT_IDENTIFIER_RESOLVER
Names a
CurrentTenantIdentifierResolver implementation to use. |
static java.lang.String |
NON_CONTEXTUAL_LOB_CREATION
Should we not use contextual LOB creation (aka based on
Connection.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 value
|
static java.lang.String |
PASS
Names the connection password.
|
static java.lang.String |
PHYSICAL_NAMING_STRATEGY
Used to specify the
PhysicalNamingStrategy 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_POOLED_VALUES_LO
Deprecated.
Use
PREFERRED_POOLED_OPTIMIZER instead |
static java.lang.String |
PREFER_USER_TRANSACTION
Should we prefer using the
JtaPlatform.retrieveUserTransaction()
over using JtaPlatform.retrieveTransactionManager() ?
Default is false |
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
Global setting for whether NULL parameter bindings should be passed to database
procedure/function calls as part of
ProcedureCall
handling. |
static java.lang.String |
PROXOOL_CONFIG_PREFIX
A setting prefix used to indicate settings that target the hibernate-proxool integration
|
static 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.
Use
PROXOOL_CONFIG_PREFIX instead |
static 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
The
QueryCacheFactory implementation class. |
static java.lang.String |
QUERY_PLAN_CACHE_MAX_SIZE
The maximum number of entries including:
HQLQueryPlan
FilterQueryPlan
NativeSQLQueryPlan
maintained by QueryPlanCache . |
static java.lang.String |
QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
Deprecated.
in favor of
QUERY_PLAN_CACHE_MAX_SIZE |
static java.lang.String |
QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES
Deprecated.
in favor of
QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE |
static java.lang.String |
QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
The maximum number of
ParameterMetadata maintained
by QueryPlanCache . |
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 SQL
|
static java.lang.String |
QUERY_TRANSLATOR
The classname of the HQL query parser factory
|
static java.lang.String |
RELEASE_CONNECTIONS
Specifies how Hibernate should release JDBC connections.
|
static java.lang.String |
RESOURCES_CLASSLOADER
Deprecated.
Use
CLASSLOADERS instead |
static java.lang.String |
SCANNER
Pass an implementation of
Scanner . |
static java.lang.String |
SCANNER_ARCHIVE_INTERPRETER
Pass
ArchiveDescriptorFactory 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 the
SchemaManagementTool to use for performing
schema management. |
static java.lang.String |
SESSION_FACTORY_NAME
Setting used to name the Hibernate
SessionFactory . |
static java.lang.String |
SESSION_FACTORY_NAME_IS_JNDI
Does the value defined by
SESSION_FACTORY_NAME represent a JNDI namespace into which
the SessionFactory should be bound and made accessible?
Defaults to true for backwards compatibility. |
static java.lang.String |
SHOW_SQL
Enable logging of generated SQL to the console
|
static java.lang.String |
SQL_EXCEPTION_CONVERTER
The
SQLExceptionConverter 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 a
StatementInspector implementation to be applied to
the SessionFactory . |
static java.lang.String |
TRANSACTION_COORDINATOR_STRATEGY
Names the implementation of
TransactionCoordinatorBuilder to use for
creating TransactionCoordinator 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_MINIMAL_PUTS
Optimize the cache for minimal puts instead of minimal gets
|
static 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 new
IdentifierGenerator 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 access
|
static 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 SQL
|
static java.lang.String |
USE_STREAMS_FOR_BINARY
Use java.io streams to read / write binary data from / to JDBC
|
static java.lang.String |
USE_STRUCTURED_CACHE
Enable use of structured second-level cache entries
|
static java.lang.String |
USER
Names the connection user.
|
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
|
static final java.lang.String CLASSLOADERS
Collection
of the ClassLoader
instances Hibernate should use for
class-loading and resource-lookups.@Deprecated static final java.lang.String APP_CLASSLOADER
CLASSLOADERS
insteadClassLoader
used to load user application classes.@Deprecated static final java.lang.String RESOURCES_CLASSLOADER
CLASSLOADERS
insteadClassLoader
Hibernate should use to perform resource loading.@Deprecated static final java.lang.String HIBERNATE_CLASSLOADER
CLASSLOADERS
insteadClassLoader
responsible for loading Hibernate classes. By default this is
the ClassLoader
that loaded this class.@Deprecated static final java.lang.String ENVIRONMENT_CLASSLOADER
CLASSLOADERS
insteadClassLoader
used when Hibernate is unable to locates classes on the
APP_CLASSLOADER
or HIBERNATE_CLASSLOADER
.static final java.lang.String CONNECTION_PROVIDER
ConnectionProvider
to use for obtaining
JDBC connections. Can reference:Class<? extends ConnectionProvider>
referenceClass<? extends ConnectionProvider>
FQN"class"
appears in the setting name due to legacy reasons; however it can accept instances.static final java.lang.String DRIVER
static final java.lang.String URL
static final java.lang.String USER
ConnectionProvider
: static final java.lang.String PASS
USER
static final java.lang.String ISOLATION
static final java.lang.String AUTOCOMMIT
static final java.lang.String POOL_SIZE
static final java.lang.String DATASOURCE
DataSource
. Can reference:DataSource
instanceDataSource
JNDI_CLASS
, JNDI_URL
, JNDI_PREFIX
, etc.static final java.lang.String CONNECTION_PREFIX
static final java.lang.String JNDI_CLASS
InitialContext
class.Context.INITIAL_CONTEXT_FACTORY
,
Constant Field Valuesstatic final java.lang.String JNDI_URL
Context.PROVIDER_URL
,
Constant Field Valuesstatic final java.lang.String JNDI_PREFIX
InitialContext
properties. These
properties are passed along to InitialContext.InitialContext(java.util.Hashtable)
static final java.lang.String DIALECT
Dialect
classstatic final java.lang.String DIALECT_RESOLVERS
DialectResolver
implementations to
register with the standard DialectFactory
.static final java.lang.String SCHEMA_MANAGEMENT_TOOL
SchemaManagementTool
to use for performing
schema management. The default is to use HibernateSchemaManagementTool
static final java.lang.String TRANSACTION_COORDINATOR_STRATEGY
TransactionCoordinatorBuilder
to use for
creating TransactionCoordinator
instances.
Can beClass
referencestatic final java.lang.String JTA_PLATFORM
JtaPlatform
implementation to use for integrating
with JTA systems. Can reference either a JtaPlatform
instance or the name of the JtaPlatform
implementation classstatic final java.lang.String PREFER_USER_TRANSACTION
JtaPlatform.retrieveUserTransaction()
over using JtaPlatform.retrieveTransactionManager()
?
Default is false
static final java.lang.String JTA_PLATFORM_RESOLVER
JtaPlatformResolver
implementation to use.static final java.lang.String JTA_CACHE_TM
TransactionManager
references.static final java.lang.String JTA_CACHE_UT
UserTransaction
references.static final java.lang.String DEFAULT_CATALOG
static final java.lang.String DEFAULT_SCHEMA
static final java.lang.String DEFAULT_CACHE_CONCURRENCY_STRATEGY
CacheConcurrencyStrategy
to use when either @Cacheable
or
@Cache
is used. @Cache(strategy="..")
is used to override.static final java.lang.String USE_NEW_ID_GENERATOR_MAPPINGS
IdentifierGenerator
are used
for AUTO, TABLE and SEQUENCE.
Default is true
. Existing applications may want to disable this (set it false
) for
upgrade compatibility.static final java.lang.String FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
static final java.lang.String IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
static final java.lang.String IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
static final java.lang.String USE_NATIONALIZED_CHARACTER_DATA
false
.static final java.lang.String SCANNER_DEPRECATED
SCANNER
or SCANNER_ARCHIVE_INTERPRETER
instead.static final java.lang.String SCANNER
Scanner
.
Accepts either:static final java.lang.String SCANNER_ARCHIVE_INTERPRETER
ArchiveDescriptorFactory
to use
in the scanning process. Accepts either:Scanner
about expected constructor forms.static final java.lang.String SCANNER_DISCOVERY
static final java.lang.String IMPLICIT_NAMING_STRATEGY
ImplicitNamingStrategy
class to use. The following
short-names are defined for this setting:ImplicitNamingStrategyJpaCompliantImpl
ImplicitNamingStrategyJpaCompliantImpl
ImplicitNamingStrategyLegacyJpaImpl
ImplicitNamingStrategyLegacyHbmImpl
ImplicitNamingStrategyComponentPathImpl
ImplicitNamingStrategyJpaCompliantImpl
.static final java.lang.String PHYSICAL_NAMING_STRATEGY
PhysicalNamingStrategy
class to use.static final java.lang.String ARTIFACT_PROCESSING_ORDER
MetadataSourceType
.
Default is "hbm,class"
which indicates to process hbm.xml
files followed by
annotations (combined with orm.xml
mappings).static final java.lang.String KEYWORD_AUTO_QUOTING_ENABLED
static final java.lang.String SESSION_FACTORY_NAME
SessionFactory
.
Naming the SessionFactory allows for it to be properly serialized across JVMs as
long as the same name is used on each JVM.
If SESSION_FACTORY_NAME_IS_JNDI
is set to true
, this is also the
name under which the SessionFactory is bound into JNDI on startup and from which
it can be obtained from JNDI.static final java.lang.String SESSION_FACTORY_NAME_IS_JNDI
SESSION_FACTORY_NAME
represent a JNDI namespace into which
the SessionFactory
should be bound and made accessible?
Defaults to true
for backwards compatibility.
Set this to false
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.SESSION_FACTORY_NAME
,
Constant Field Valuesstatic final java.lang.String SHOW_SQL
static final java.lang.String FORMAT_SQL
static final java.lang.String USE_SQL_COMMENTS
static final java.lang.String MAX_FETCH_DEPTH
static final java.lang.String DEFAULT_BATCH_FETCH_SIZE
static final java.lang.String USE_STREAMS_FOR_BINARY
static final java.lang.String USE_SCROLLABLE_RESULTSET
static final java.lang.String USE_GET_GENERATED_KEYS
static final java.lang.String STATEMENT_FETCH_SIZE
static final java.lang.String STATEMENT_BATCH_SIZE
static final java.lang.String BATCH_STRATEGY
static final java.lang.String BATCH_VERSIONED_DATA
static final java.lang.String AUTO_CLOSE_SESSION
static final java.lang.String FLUSH_BEFORE_COMPLETION
static final java.lang.String ACQUIRE_CONNECTIONS
RELEASE_CONNECTIONS
, not bothConnectionAcquisitionMode
,
Constant Field Valuesstatic final java.lang.String RELEASE_CONNECTIONS
ACQUIRE_CONNECTIONS
, not bothConnectionReleaseMode
,
Constant Field Valuesstatic final java.lang.String CURRENT_SESSION_CONTEXT_CLASS
SessionFactory.getCurrentSession()
processing.static final java.lang.String USE_IDENTIFIER_ROLLBACK
static final java.lang.String USE_REFLECTION_OPTIMIZER
static final java.lang.String QUERY_TRANSLATOR
static final java.lang.String QUERY_SUBSTITUTIONS
static final java.lang.String QUERY_STARTUP_CHECKING
static final java.lang.String CONVENTIONAL_JAVA_CONSTANTS
false
. Existing applications may want to enable this (set it to true
)
if only conventional Java constants are used.
There is a significant performance improvement by setting hibernate.query.conventional_java_constants
to true
, because Hibernate can determine if an alias should be treated as a Java constant by simply
checking if the alias follows Java constant conventions.
With hibernate.query.conventional_java_constants
set to false
, Hibernate determines if an alias
should be treated as a Java constant by attempting to load the alias as a class (an expensive operation);
if it fails, then Hibernate treats the alias as a Java constant.static final java.lang.String SQL_EXCEPTION_CONVERTER
SQLExceptionConverter
to use for converting SQLExceptions
to Hibernate's JDBCException hierarchy. The default is to use the configured
Dialect
's preferred SQLExceptionConverter.static final java.lang.String WRAP_RESULT_SETS
static final java.lang.String ORDER_UPDATES
static final java.lang.String ORDER_INSERTS
static final java.lang.String DEFAULT_NULL_ORDERING
ORDER BY
clause. Supported options: none
(default),
first
, last
.static final java.lang.String LOG_JDBC_WARNINGS
true
or false
.
Default value is Dialect.isJdbcLogWarningsEnabledByDefault()
static final java.lang.String C3P0_CONFIG_PREFIX
static final java.lang.String C3P0_MAX_SIZE
static final java.lang.String C3P0_MIN_SIZE
static final java.lang.String C3P0_TIMEOUT
static final java.lang.String C3P0_MAX_STATEMENTS
static final java.lang.String C3P0_ACQUIRE_INCREMENT
static final java.lang.String C3P0_IDLE_TEST_PERIOD
static final java.lang.String PROXOOL_CONFIG_PREFIX
static final java.lang.String PROXOOL_PREFIX
PROXOOL_CONFIG_PREFIX
insteadstatic final java.lang.String PROXOOL_XML
static final java.lang.String PROXOOL_PROPERTIES
static final java.lang.String PROXOOL_EXISTING_POOL
static final java.lang.String PROXOOL_POOL_ALIAS
static final java.lang.String CACHE_REGION_FACTORY
RegionFactory
implementation. Can refer to:RegionFactory
RegionFactory
RegionFactory
static final java.lang.String CACHE_KEYS_FACTORY
CacheKeysFactory
impl to use.
Can refer to:CacheKeysFactory
CacheKeysFactory
CacheKeysFactory
DefaultCacheKeysFactory
SimpleCacheKeysFactory
static final java.lang.String CACHE_PROVIDER_CONFIG
static final java.lang.String USE_SECOND_LEVEL_CACHE
static final java.lang.String USE_QUERY_CACHE
static final java.lang.String QUERY_CACHE_FACTORY
QueryCacheFactory
implementation class.static final java.lang.String CACHE_REGION_PREFIX
static final java.lang.String USE_MINIMAL_PUTS
static final java.lang.String USE_STRUCTURED_CACHE
static final java.lang.String AUTO_EVICT_COLLECTION_CACHE
static final java.lang.String USE_DIRECT_REFERENCE_CACHE_ENTRIES
static final java.lang.String DEFAULT_ENTITY_MODE
static final java.lang.String GLOBALLY_QUOTED_IDENTIFIERS
true
/false
option.static final java.lang.String GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS
GLOBALLY_QUOTED_IDENTIFIERS
, this allows such global quoting
to skip column-definitions as defined by Column
,
JoinColumn
, etc.
JPA states that column-definitions are subject to global quoting, so by default this setting
is false
for JPA compliance. Set to true
to avoid column-definitions
being quoted due to global quoting (they will still be quoted if explicitly quoted in the
annotation/xml).static final java.lang.String CHECK_NULLABILITY
static final java.lang.String BYTECODE_PROVIDER
static final java.lang.String JPAQL_STRICT_COMPLIANCE
@Deprecated static final java.lang.String PREFER_POOLED_VALUES_LO
PREFERRED_POOLED_OPTIMIZER
insteadoptimizers
, prefer interpreting the
database value as the lower (lo) boundary. The default is to interpret it as the high boundary.static final java.lang.String PREFERRED_POOLED_OPTIMIZER
@Deprecated static final java.lang.String QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES
QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
QueryPlanCache
. Default is 128.@Deprecated static final java.lang.String QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
QUERY_PLAN_CACHE_MAX_SIZE
QueryPlanCache
. Default is 2048.static final java.lang.String QUERY_PLAN_CACHE_MAX_SIZE
QueryPlanCache
. Default is 2048.static final java.lang.String QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
ParameterMetadata
maintained
by QueryPlanCache
. Default is 128.static final java.lang.String NON_CONTEXTUAL_LOB_CREATION
Connection.createBlob()
et al).static final java.lang.String HBM2DDL_AUTO
Action
enum.
Interpreted in combination with HBM2DDL_DATABASE_ACTION
and
HBM2DDL_SCRIPTS_ACTION
. If no value is specified, the default
is "none" (Action.NONE
).Action
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_DATABASE_ACTION
Action
enum.
Interpreted in combination with HBM2DDL_AUTO
. If no value is specified, the default
is "none" (Action.NONE
).Action
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_SCRIPTS_ACTION
Action
enum.
Interpreted in combination with HBM2DDL_AUTO
. If no value is specified, the default
is "none" (Action.NONE
).Action
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_CONNECTION
Connection
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".static final java.lang.String HBM2DDL_DB_NAME
DatabaseMetaData.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.static final java.lang.String HBM2DDL_DB_MAJOR_VERSION
DatabaseMetaData.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.static final java.lang.String HBM2DDL_DB_MINOR_VERSION
DatabaseMetaData.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.static final java.lang.String HBM2DDL_CREATE_SOURCE
SourceType
for valid set of values.
If no value is specified, a default is assumed as follows:SourceType
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_DROP_SOURCE
SourceType
for valid set of values.
If no value is specified, a default is assumed as follows:SourceType
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_CREATE_SCRIPT_SOURCE
Reader
configured for reading of the DDL script
file or a string designating a file URL
for the DDL script.
Hibernate historically also accepted HBM2DDL_IMPORT_FILES
for a similar purpose. This setting
should be preferred over HBM2DDL_IMPORT_FILES
moving forwardstatic final java.lang.String HBM2DDL_DROP_SCRIPT_SOURCE
Reader
configured for reading of the DDL script
file or a string designating a file URL
for the DDL script.HBM2DDL_DROP_SOURCE
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_SCRIPTS_CREATE_TARGET
Writer
configured for output of the DDL script or a string specifying the file URL for the DDL
script.HBM2DDL_SCRIPTS_ACTION
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_SCRIPTS_DROP_TARGET
Writer
configured for output of the DDL script or a string specifying the file URL for the DDL
script.HBM2DDL_SCRIPTS_ACTION
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_IMPORT_FILES
HBM2DDL_CREATE_SCRIPT_SOURCE
/ HBM2DDL_DROP_SCRIPT_SOURCE
should be preferred
moving forwardstatic final java.lang.String HBM2DDL_LOAD_SCRIPT_SOURCE
HBM2DDL_IMPORT_FILES
Specifies a Reader
configured for reading of the SQL load script or a string designating the
file URL
for the SQL load script.
A "SQL load script" is a script that performs some database initialization (INSERT, etc).static final java.lang.String HBM2DDL_IMPORT_FILES_SQL_EXTRACTOR
ImportSqlCommandExtractor
implementation class
to use for parsing source/import files as defined by HBM2DDL_CREATE_SCRIPT_SOURCE
,
HBM2DDL_DROP_SCRIPT_SOURCE
or HBM2DDL_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 is SingleLineSqlCommandExtractor
.static final java.lang.String HBM2DLL_CREATE_NAMESPACES
static final java.lang.String HBM2DLL_CREATE_SCHEMAS
HBM2DLL_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
to true
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 explicitly false
), the
provider should not attempt to create database schemas.static final java.lang.String HBM2DDL_FILTER_PROVIDER
SchemaFilterProvider
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.static final java.lang.String HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY
JdbcMetadaAccessStrategy
enum.
JdbcMetadaAccessStrategy.GROUPED
is the default value.JdbcMetadaAccessStrategy
,
Constant Field Valuesstatic final java.lang.String HBM2DDL_DELIMITER
static final java.lang.String JMX_ENABLED
static final java.lang.String JMX_PLATFORM_SERVER
static final java.lang.String JMX_AGENT_ID
static final java.lang.String JMX_DOMAIN_NAME
static final java.lang.String JMX_SF_NAME
static final java.lang.String JMX_DEFAULT_OBJ_NAME_DOMAIN
static final java.lang.String CUSTOM_ENTITY_DIRTINESS_STRATEGY
CustomEntityDirtinessStrategy
to use. May point to
either a class name or instance.static final java.lang.String USE_ENTITY_WHERE_CLAUSE_FOR_COLLECTIONS
@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 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` (the default) 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.static final java.lang.String MULTI_TENANT
MultiTenancyStrategy
,
Constant Field Valuesstatic final java.lang.String MULTI_TENANT_CONNECTION_PROVIDER
MultiTenantConnectionProvider
implementation to
use. As MultiTenantConnectionProvider is also a service, can be configured directly through the
StandardServiceRegistryBuilder
static final java.lang.String MULTI_TENANT_IDENTIFIER_RESOLVER
CurrentTenantIdentifierResolver
implementation to use.
Can beClass
referencestatic final java.lang.String INTERCEPTOR
Interceptor
implementation to be applied to the SessionFactory
Can referenceClass
referencestatic final java.lang.String STATEMENT_INSPECTOR
StatementInspector
implementation to be applied to
the SessionFactory
. Can referenceClass
referencestatic final java.lang.String ENABLE_LAZY_LOAD_NO_TRANS
static final java.lang.String HQL_BULK_ID_STRATEGY
static final java.lang.String BATCH_FETCH_STYLE
BatchFetchStyle
to use. Can specify either the
BatchFetchStyle
name (insensitively), or a
BatchFetchStyle
instance.
LEGACY
is the default value.static final java.lang.String JTA_TRACK_BY_THREAD
true
(enabled).static final java.lang.String JACC_CONTEXT_ID
static final java.lang.String JACC_PREFIX
static final java.lang.String JACC_ENABLED
static final java.lang.String ENABLE_SYNONYMS
static final java.lang.String EXTRA_PHYSICAL_TABLE_TYPES
static final java.lang.String UNIQUE_CONSTRAINT_SCHEMA_UPDATE_STRATEGY
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 existed
UniqueConstraintSchemaUpdateStrategy.SKIP
:
do not attempt to create unique constraints on a schema updatestatic final java.lang.String GENERATE_STATISTICS
static final java.lang.String LOG_SESSION_METRICS
StatisticalLoggingSessionEventListener
is
enabled on all Sessions (unless explicitly disabled for a given Session). The default value of this
setting is determined by the value for GENERATE_STATISTICS
, meaning that if collection of statistics
is enabled logging of Session metrics is enabled by default too.static final java.lang.String AUTO_SESSION_EVENTS_LISTENER
SessionEventListener
to be applied to opened Sessions.static final java.lang.String PROCEDURE_NULL_PARAM_PASSING
ProcedureCall
handling. Implicitly Hibernate will not pass the NULL, the intention being to allow
any default argumnet values to be applied.
This defines a global setting, which can them be controlled per parameter via
ParameterRegistration.enablePassingNulls(boolean)
Values are true
(pass the NULLs) or false
(do not pass the NULLs).static final java.lang.String CREATE_EMPTY_COMPOSITES_ENABLED
null
.
The default (and historical) behavior is that a null
reference will be used to represent the
composite when all of its attributes are null
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.static final java.lang.String COLLECTION_JOIN_SUBQUERY
true
. Existing applications may want to disable this (set it false
) for
upgrade compatibility.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.