| Modifier and Type | Field and Description |
|---|---|
| public static final String | AUTOCOMMIT
Controls the autocommit mode of JDBC connections obtained from any
|
| public static final String | CONNECTION_HANDLING
Specifies how Hibernate should manage JDBC connections in terms of acquisition and release, either:
|
| public static final String | CONNECTION_PREFIX
A prefix for properties specifying arbitrary JDBC connection properties. |
| public static final String | CONNECTION_PROVIDER
Specifies a
|
| public static final String | CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
Indicates that Connections obtained from the configured |
| public static final String | DATASOURCE
Deprecated
The JPA-standard
JAKARTA_JTA_DATASOURCE or JAKARTA_JTA_DATASOURCE setting
is now preferred.
|
| public static final String | DIALECT
Specifies the Hibernate SQL dialect, either
|
| public static final String | DIALECT_DB_MAJOR_VERSION
Deprecated
Use
JAKARTA_HBM2DDL_DB_MAJOR_VERSION instead
|
| public static final String | DIALECT_DB_MINOR_VERSION
Deprecated
Use
JAKARTA_HBM2DDL_DB_MINOR_VERSION instead
|
| public static final String | DIALECT_DB_NAME
Deprecated
Use
JAKARTA_HBM2DDL_DB_NAME instead
|
| public static final String | DIALECT_DB_VERSION
Deprecated
Use
JAKARTA_HBM2DDL_DB_VERSION instead
|
| public static final String | DIALECT_NATIVE_PARAM_MARKERS
Controls whether to use JDBC markers (`?`) or dialect native markers for parameters within preparable SQL statements. |
| public static final String | DIALECT_RESOLVERS
Specifies additional |
| public static final String | DRIVER
Deprecated
The JPA-standard setting
JAKARTA_JDBC_DRIVER is now preferred.
|
| public static final String | FORMAT_SQL
Enables formatting of SQL logged to the console. |
| public static final String | HBM2DDL_CONNECTION
Deprecated
Use
JAKARTA_HBM2DDL_CONNECTION instead
|
| public static final String | HIGHLIGHT_SQL
Enables highlighting of SQL logged to the console using ANSI escape codes. |
| public static final String | ISOLATION
Specified the JDBC transaction isolation level. |
| public static final String | JAKARTA_HBM2DDL_CONNECTION
Allows passing a specific |
| public static final String | JAKARTA_HBM2DDL_DB_MAJOR_VERSION
Used in conjunction with jakarta.persistence.database-product-name for the purpose of
determining the |
| public static final String | JAKARTA_HBM2DDL_DB_MINOR_VERSION
Used in conjunction with jakarta.persistence.database-product-name for the purpose of
determining the |
| public static final String | JAKARTA_HBM2DDL_DB_NAME
Specifies the name of the database vendor (as would be reported by
|
| public static final String | JAKARTA_HBM2DDL_DB_VERSION
Used in conjunction with jakarta.persistence.database-product-name for the purpose of
determining the |
| public static final String | JAKARTA_JDBC_DRIVER
Specifies the name of a JDBC driver to use to connect to the database. |
| public static final String | JAKARTA_JDBC_PASSWORD
Specifies the password to use when connecting via JDBC. |
| public static final String | JAKARTA_JDBC_URL
Specifies the JDBC connection URL to use to connect to the database. |
| public static final String | JAKARTA_JDBC_USER
Specifies the database user to use when connecting via JDBC. |
| public static final String | JAKARTA_JTA_DATASOURCE
Specifies a JTA |
| public static final String | JAKARTA_NON_JTA_DATASOURCE
Specifies a non-JTA |
| public static final String | JDBC_TIME_ZONE
Specifies the time zone to use in the JDBC driver, which is supposed to match the database timezone. |
| public static final String | JPA_JDBC_DRIVER
Deprecated
Use
JAKARTA_JDBC_DRIVER instead
|
| public static final String | JPA_JDBC_PASSWORD
Deprecated
Use
JAKARTA_JDBC_PASSWORD instead
|
| public static final String | JPA_JDBC_URL
Deprecated
Use
JAKARTA_JDBC_URL instead
|
| public static final String | JPA_JDBC_USER
Deprecated
Use
JAKARTA_JDBC_USER instead
|
| public static final String | JPA_JTA_DATASOURCE
Deprecated
Use
JAKARTA_JTA_DATASOURCE instead
|
| public static final String | JPA_NON_JTA_DATASOURCE
Deprecated
Use
JAKARTA_NON_JTA_DATASOURCE instead
|
| public static final String | LOG_JDBC_WARNINGS
When enabled, specifies that JDBC statement warnings should be logged. |
| public static final String | LOG_SLOW_QUERY
Specifies a duration in milliseconds defining the minimum query execution time that characterizes a "slow" query. |
| public static final String | NON_CONTEXTUAL_LOB_CREATION
When enabled, specifies that Hibernate should not use contextual LOB creation. |
| public static final String | PASS
Deprecated
The JPA-standard setting
JAKARTA_JDBC_USER is now preferred.
|
| public static final String | POOL_SIZE
Specifies the maximum number of inactive connections for the built-in connection pool. |
| public static final String | SHOW_SQL
Enables logging of generated SQL to the console. |
| public static final 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. |
| public static final String | STATEMENT_INSPECTOR
Specifies a
|
| public static final String | URL
Deprecated
The JPA-standard setting
JAKARTA_JDBC_URL is now preferred.
|
| public static final String | USE_GET_GENERATED_KEYS
Specifies that generated primary keys may be retrieved using the JDBC 3
|
| public static final String | USE_SCROLLABLE_RESULTSET
Controls how Hibernate should handle scrollable results -
|
| public static final String | USE_SQL_COMMENTS
Specifies that comments should be added to the generated SQL. |
| public static final String | USER
Deprecated
The JPA-standard setting
JAKARTA_JDBC_USER is now preferred.
|
| AUTOCOMMIT | back to summary |
|---|---|
| public static final String AUTOCOMMIT Controls the autocommit mode of JDBC connections obtained from any
| |
| CONNECTION_HANDLING | back to summary |
|---|---|
| public static final String CONNECTION_HANDLING Specifies how Hibernate should manage JDBC connections in terms of acquisition and release, either:
The default is | |
| CONNECTION_PREFIX | back to summary |
|---|---|
| public static final String CONNECTION_PREFIX A prefix for properties specifying arbitrary JDBC connection properties. These properties are simply passed along to the provider when creating a connection.
For example, declaring | |
| CONNECTION_PROVIDER | back to summary |
|---|---|
| public static final String CONNECTION_PROVIDER Specifies a
The term | |
| CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT | back to summary |
|---|---|
| public static final String CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT Indicates that Connections obtained from the configured
It is inappropriate to set this value to API Note By default, Hibernate calls | |
| DATASOURCE | back to summary |
|---|---|
| public static final String DATASOURCE
Deprecated The JPA-standard
| |
| DIALECT | back to summary |
|---|---|
| public static final String DIALECT Specifies the Hibernate SQL dialect, either
By default, Hibernate will attempt to automatically determine the dialect from the JDBC URL and JDBC metadata, so this setting is not usually necessary. API Note As of Hibernate 6, this property should not be explicitly specified,
except when using a custom user-written implementation of
| |
| DIALECT_DB_MAJOR_VERSION | back to summary |
|---|---|
| public static final String DIALECT_DB_MAJOR_VERSION
Deprecated Use
| |
| DIALECT_DB_MINOR_VERSION | back to summary |
|---|---|
| public static final String DIALECT_DB_MINOR_VERSION
Deprecated Use
| |
| DIALECT_DB_NAME | back to summary |
|---|---|
| public static final String DIALECT_DB_NAME
Deprecated Use
| |
| DIALECT_DB_VERSION | back to summary |
|---|---|
| public static final String DIALECT_DB_VERSION
Deprecated Use
| |
| DIALECT_NATIVE_PARAM_MARKERS | back to summary |
|---|---|
| public static final String DIALECT_NATIVE_PARAM_MARKERS Controls whether to use JDBC markers (`?`) or dialect native markers for parameters within preparable SQL statements. Implementation Note
| |
| DIALECT_RESOLVERS | back to summary |
|---|---|
| public static final String DIALECT_RESOLVERS Specifies additional | |
| DRIVER | back to summary |
|---|---|
| public static final String DRIVER
Deprecated The JPA-standard setting | |
| FORMAT_SQL | back to summary |
|---|---|
| public static final String FORMAT_SQL Enables formatting of SQL logged to the console. | |
| HBM2DDL_CONNECTION | back to summary |
|---|---|
| public static final String HBM2DDL_CONNECTION
Deprecated Use
| |
| HIGHLIGHT_SQL | back to summary |
|---|---|
| public static final String HIGHLIGHT_SQL Enables highlighting of SQL logged to the console using ANSI escape codes. | |
| ISOLATION | back to summary |
|---|---|
| public static final String ISOLATION Specified the JDBC transaction isolation level. | |
| JAKARTA_HBM2DDL_CONNECTION | back to summary |
|---|---|
| public static final String JAKARTA_HBM2DDL_CONNECTION Allows passing a specific
For | |
| JAKARTA_HBM2DDL_DB_MAJOR_VERSION | back to summary |
|---|---|
| public static final String JAKARTA_HBM2DDL_DB_MAJOR_VERSION Used in conjunction with jakarta.persistence.database-product-name for the purpose of
determining the
The value is expected to match what would be returned from
| |
| JAKARTA_HBM2DDL_DB_MINOR_VERSION | back to summary |
|---|---|
| public static final String JAKARTA_HBM2DDL_DB_MINOR_VERSION Used in conjunction with jakarta.persistence.database-product-name for the purpose of
determining the
The value is expected to match what would be returned from
| |
| JAKARTA_HBM2DDL_DB_NAME | back to summary |
|---|---|
| public static final String JAKARTA_HBM2DDL_DB_NAME Specifies the name of the database vendor (as would be reported by
For cases when the name of the database vendor is not enough alone, a combination of jakarta.persistence.database-product-version, jakarta.persistence.database-major-version jakarta.persistence.database-minor-version can be used instead Implementation Specification
| |
| JAKARTA_HBM2DDL_DB_VERSION | back to summary |
|---|---|
| public static final String JAKARTA_HBM2DDL_DB_VERSION Used in conjunction with jakarta.persistence.database-product-name for the purpose of
determining the
The value is expected to match what would be returned from
| |
| JAKARTA_JDBC_DRIVER | back to summary |
|---|---|
| public static final String JAKARTA_JDBC_DRIVER Specifies the name of a JDBC driver to use to connect to the database.
Used in conjunction with
When connections are obtained from a See section 8.2.1.9 | |
| JAKARTA_JDBC_PASSWORD | back to summary |
|---|---|
| public static final String JAKARTA_JDBC_PASSWORD Specifies the password to use when connecting via JDBC.
Used in conjunction with See JPA 2 section 8.2.1.9 | |
| JAKARTA_JDBC_URL | back to summary |
|---|---|
| public static final String JAKARTA_JDBC_URL Specifies the JDBC connection URL to use to connect to the database.
Used in conjunction with
When connections are obtained from a See section 8.2.1.9 | |
| JAKARTA_JDBC_USER | back to summary |
|---|---|
| public static final String JAKARTA_JDBC_USER Specifies the database user to use when connecting via JDBC.
Used in conjunction with
Depending on the configured
See section 8.2.1.9 | |
| JAKARTA_JTA_DATASOURCE | back to summary |
|---|---|
| public static final String JAKARTA_JTA_DATASOURCE Specifies a JTA
See JPA 2 sections 9.4.3 and 8.2.1.5 | |
| JAKARTA_NON_JTA_DATASOURCE | back to summary |
|---|---|
| public static final String JAKARTA_NON_JTA_DATASOURCE Specifies a non-JTA
See JPA 2 sections 9.4.3 and 8.2.1.5 | |
| JDBC_TIME_ZONE | back to summary |
|---|---|
| public static final String JDBC_TIME_ZONE Specifies the time zone to use in the JDBC driver, which is supposed to match the database timezone.
This is the timezone what will be passed to
The time zone may be given as:
By default, the JVM default time zone is assumed by the JDBC driver.
| |
| JPA_JDBC_DRIVER | back to summary |
|---|---|
| public static final String JPA_JDBC_DRIVER
Deprecated Use
| |
| JPA_JDBC_PASSWORD | back to summary |
|---|---|
| public static final String JPA_JDBC_PASSWORD
Deprecated Use
| |
| JPA_JDBC_URL | back to summary |
|---|---|
| public static final String JPA_JDBC_URL
Deprecated Use
| |
| JPA_JDBC_USER | back to summary |
|---|---|
| public static final String JPA_JDBC_USER
Deprecated Use
| |
| JPA_JTA_DATASOURCE | back to summary |
|---|---|
| public static final String JPA_JTA_DATASOURCE
Deprecated Use
| |
| JPA_NON_JTA_DATASOURCE | back to summary |
|---|---|
| public static final String JPA_NON_JTA_DATASOURCE
Deprecated Use
| |
| LOG_JDBC_WARNINGS | back to summary |
|---|---|
| public static final String LOG_JDBC_WARNINGS When enabled, specifies that JDBC statement warnings should be logged.
The default is determined by
| |
| LOG_SLOW_QUERY | back to summary |
|---|---|
| public static final String LOG_SLOW_QUERY Specifies a duration in milliseconds defining the minimum query execution time that characterizes a "slow" query. Any SQL query which takes longer than this amount of time to execute will be logged.
A value of | |
| NON_CONTEXTUAL_LOB_CREATION | back to summary |
|---|---|
| public static final String NON_CONTEXTUAL_LOB_CREATION When enabled, specifies that Hibernate should not use contextual LOB creation. | |
| PASS | back to summary |
|---|---|
| public static final String PASS
Deprecated The JPA-standard setting
| |
| POOL_SIZE | back to summary |
|---|---|
| public static final String POOL_SIZE Specifies the maximum number of inactive connections for the built-in connection pool. | |
| SHOW_SQL | back to summary |
|---|---|
| public static final String SHOW_SQL Enables logging of generated SQL to the console. | |
| STATEMENT_FETCH_SIZE | back to summary |
|---|---|
| public static final 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 | |
| STATEMENT_INSPECTOR | back to summary |
|---|---|
| public static final String STATEMENT_INSPECTOR Specifies a
| |
| URL | back to summary |
|---|---|
| public static final String URL
Deprecated The JPA-standard setting | |
| USE_GET_GENERATED_KEYS | back to summary |
|---|---|
| public static final String USE_GET_GENERATED_KEYS Specifies that generated primary keys may be retrieved using the JDBC 3
Usually, performance will be improved if this behavior is enabled, assuming
the JDBC driver supports | |
| USE_SCROLLABLE_RESULTSET | back to summary |
|---|---|
| public static final String USE_SCROLLABLE_RESULTSET Controls how Hibernate should handle scrollable results -
| |
| USE_SQL_COMMENTS | back to summary |
|---|---|
| public static final String USE_SQL_COMMENTS Specifies that comments should be added to the generated SQL. | |
| USER | back to summary |
|---|---|
| public static final String USER
Deprecated The JPA-standard setting
| |