| Modifier and Type | Field and Description |
|---|---|
| public static final String | ALLOW_JTA_TRANSACTION_ACCESS
When enabled, allows access to the |
| public static final String | ALLOW_UPDATE_OUTSIDE_TRANSACTION
When enabled, allows update operations outside a transaction. |
| public static final String | AUTO_CLOSE_SESSION
When enabled, specifies that the |
| public static final String | ENABLE_LAZY_LOAD_NO_TRANS
Allows a detached proxy or lazy collection to be fetched even when not associated with an open persistence context, by creating a temporary persistence context when the proxy or collection is accessed. |
| public static final String | FLUSH_BEFORE_COMPLETION
When enabled, specifies that automatic flushing should occur during the JTA
|
| public static final String | JTA_CACHE_TM
When enabled, indicates that it is safe to cache |
| public static final String | JTA_CACHE_UT
When enabled, indicates that it is safe to cache |
| public static final String | JTA_PLATFORM
Specifies the
|
| public static final String | JTA_PLATFORM_RESOLVER
Specifies a |
| public static final String | JTA_TRACK_BY_THREAD
A transaction can be rolled back by another thread ("tracking by thread") -- not the original application. |
| public static final String | PREFER_USER_TRANSACTION
When enabled, specifies that the |
| public static final String | TRANSACTION_COORDINATOR_STRATEGY
Specify the |
| ALLOW_JTA_TRANSACTION_ACCESS | back to summary |
|---|---|
| public static final String ALLOW_JTA_TRANSACTION_ACCESS When enabled, allows access to the
Values are
| |
| ALLOW_UPDATE_OUTSIDE_TRANSACTION | back to summary |
|---|---|
| public static final String ALLOW_UPDATE_OUTSIDE_TRANSACTION When enabled, allows update operations outside a transaction. Since version 5.2 Hibernate conforms with the JPA specification and disallows flushing any update outside a transaction.
Values are The default behavior is to disallow update operations outside a transaction. | |
| AUTO_CLOSE_SESSION | back to summary |
|---|---|
| public static final String AUTO_CLOSE_SESSION When enabled, specifies that the | |
| ENABLE_LAZY_LOAD_NO_TRANS | back to summary |
|---|---|
| public static final String ENABLE_LAZY_LOAD_NO_TRANS Allows a detached proxy or lazy collection to be fetched even when not associated with an open persistence context, by creating a temporary persistence context when the proxy or collection is accessed. This behavior is not recommended, since it can easily break transaction isolation or lead to data aliasing; it is therefore disabled by default. | |
| FLUSH_BEFORE_COMPLETION | back to summary |
|---|---|
| public static final String FLUSH_BEFORE_COMPLETION When enabled, specifies that automatic flushing should occur during the JTA
| |
| JTA_CACHE_TM | back to summary |
|---|---|
| public static final String JTA_CACHE_TM When enabled, indicates that it is safe to cache
| |
| JTA_CACHE_UT | back to summary |
|---|---|
| public static final String JTA_CACHE_UT When enabled, indicates that it is safe to cache
| |
| JTA_PLATFORM | back to summary |
|---|---|
| public static final String JTA_PLATFORM Specifies the
| |
| JTA_PLATFORM_RESOLVER | back to summary |
|---|---|
| public static final String JTA_PLATFORM_RESOLVER Specifies a
| |
| JTA_TRACK_BY_THREAD | back to summary |
|---|---|
| public static final 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. | |
| PREFER_USER_TRANSACTION | back to summary |
|---|---|
| public static final String PREFER_USER_TRANSACTION When enabled, specifies that the
By default, the | |
| TRANSACTION_COORDINATOR_STRATEGY | back to summary |
|---|---|
| public static final String TRANSACTION_COORDINATOR_STRATEGY Specify the Accepts either:
Implementation Specification With non Jakarta Persistence bootstrapping, Hibernate will use
| |