The settings defined here may be specified at configuration time:
persistence.xml or
hibernate.cfg.xml,
Configuration#setProperty(String, String), or
org.hibernate.boot.registry.StandardServiceRegistryBuilder#applySetting(String, Object) .
Note that Hibernate does not distinguish between JPA-defined configuration properties and "native" configuration properties. Any property listed here may be used to configure Hibernate no matter what configuration mechanism or bootstrap API is used.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ALLOW_REFRESH_DETACHED_ENTITY
When enabled, allows calls to |
| public static final String | |
| public static final String | CURRENT_SESSION_CONTEXT_CLASS
Specifies a
|
| public static final String | CUSTOM_ENTITY_DIRTINESS_STRATEGY
Setting to identify a |
| public static final String | DELAY_ENTITY_LOADER_CREATIONS
Controls how entity loaders are created. |
| public static final String | DISCARD_PC_ON_CLOSE
When enabled, specifies that the persistent context should be discarded when either
|
| public static final String | EVENT_LISTENER_PREFIX
Event listener configuration properties follow the pattern
|
| public static final String | FLUSH_MODE
Deprecated
for removal since 6.2. There are much better ways to control the flush mode of a session,
for example,
org. or
org..
|
| public static final String | |
| public static final String | IDENTIFIER_GENERATOR_STRATEGY_PROVIDER
Specifies a class which implements |
| public static final String | JAKARTA_LOCK_SCOPE
Set a default value for the hint |
| public static final String | JAKARTA_LOCK_TIMEOUT
Set a default value for the hint |
| public static final String | JPA_LOCK_SCOPE
Deprecated
Use
JAKARTA_LOCK_SCOPE instead
|
| public static final String | JPA_LOCK_TIMEOUT
Deprecated
Use
JAKARTA_LOCK_TIMEOUT instead
|
| public static final String | |
| public static final String | MERGE_ENTITY_COPY_OBSERVER
Setting that specifies how Hibernate will respond when multiple representations of the same persistent entity ("entity copy") are detected while merging. |
| public static final String | |
| public static final String | USE_IDENTIFIER_ROLLBACK
When enabled, specifies that the generated identifier of an entity is unset when the entity is deleted. |
| ALLOW_REFRESH_DETACHED_ENTITY | back to summary |
|---|---|
| public static final String ALLOW_REFRESH_DETACHED_ENTITY When enabled, allows calls to
Values are The default behavior is to allow refreshing a detached instance unless Hibernate is bootstrapped via JPA.
| |
| CFG_XML_FILE | back to summary |
|---|---|
| public static final String CFG_XML_FILE | |
| CURRENT_SESSION_CONTEXT_CLASS | back to summary |
|---|---|
| public static final String CURRENT_SESSION_CONTEXT_CLASS Specifies a
org. is used
by default.
| |
| CUSTOM_ENTITY_DIRTINESS_STRATEGY | back to summary |
|---|---|
| public static final String CUSTOM_ENTITY_DIRTINESS_STRATEGY Setting to identify a | |
| DELAY_ENTITY_LOADER_CREATIONS | back to summary |
|---|---|
| public static final String DELAY_ENTITY_LOADER_CREATIONS Controls how entity loaders are created.
When
| |
| DISCARD_PC_ON_CLOSE | back to summary |
|---|---|
| public static final String DISCARD_PC_ON_CLOSE When enabled, specifies that the persistent context should be discarded when either
| |
| EVENT_LISTENER_PREFIX | back to summary |
|---|---|
| public static final String EVENT_LISTENER_PREFIX Event listener configuration properties follow the pattern
| |
| FLUSH_MODE | back to summary |
|---|---|
| public static final String FLUSH_MODE
Deprecated for removal since 6.2. There are much better ways to control the flush mode of a session,
for example,
| |
| HBM_XML_FILES | back to summary |
|---|---|
| public static final String HBM_XML_FILES | |
| IDENTIFIER_GENERATOR_STRATEGY_PROVIDER | back to summary |
|---|---|
| public static final String IDENTIFIER_GENERATOR_STRATEGY_PROVIDER
Specifies a class which implements
| |
| JAKARTA_LOCK_SCOPE | back to summary |
|---|---|
| public static final String JAKARTA_LOCK_SCOPE Set a default value for the hint See JPA 2 sections 8.2.1.9 and 3.4.4.3
| |
| JAKARTA_LOCK_TIMEOUT | back to summary |
|---|---|
| public static final String JAKARTA_LOCK_TIMEOUT Set a default value for the hint See JPA 2 sections 8.2.1.9 and 3.4.4.3
| |
| JPA_LOCK_SCOPE | back to summary |
|---|---|
| public static final String JPA_LOCK_SCOPE
Deprecated Use
| |
| JPA_LOCK_TIMEOUT | back to summary |
|---|---|
| public static final String JPA_LOCK_TIMEOUT
Deprecated Use
| |
| LOADED_CLASSES | back to summary |
|---|---|
| public static final String LOADED_CLASSES | |
| MERGE_ENTITY_COPY_OBSERVER | back to summary |
|---|---|
| public static final String MERGE_ENTITY_COPY_OBSERVER Setting that specifies how Hibernate will respond when multiple representations of the same persistent entity ("entity copy") are detected while merging. The possible values are:
Alternatively, the application may customize the behavior by providing an
implementation of
When this property is set to
| |
| ORM_XML_FILES | back to summary |
|---|---|
| public static final String ORM_XML_FILES | |
| USE_IDENTIFIER_ROLLBACK | back to summary |
|---|---|
| public static final String USE_IDENTIFIER_ROLLBACK When enabled, specifies that the generated identifier of an entity is unset when the entity is deleted. | |