Class SessionFactoryUtils
- java.lang.Object
-
- io.micronaut.transaction.hibernate5.SessionFactoryUtils
-
public abstract class SessionFactoryUtils extends java.lang.Object
Helper class featuring methods for Hibernate Session handling. Also provides support for exception translation.Used internally by
HibernateTransactionManager
. Can also be used directly in application code.- Since:
- 4.2
- Author:
- Juergen Hoeller, graemerocher
- See Also:
HibernateTransactionManager
-
-
Field Summary
Fields Modifier and Type Field Description static int
SESSION_SYNCHRONIZATION_ORDER
Order value for TransactionSynchronization objects that clean up Hibernate Sessions.
-
Constructor Summary
Constructors Constructor Description SessionFactoryUtils()
-
-
-
Field Detail
-
SESSION_SYNCHRONIZATION_ORDER
public static final int SESSION_SYNCHRONIZATION_ORDER
Order value for TransactionSynchronization objects that clean up Hibernate Sessions. ReturnsDataSourceUtils.CONNECTION_SYNCHRONIZATION_ORDER - 100
to execute Session cleanup before JDBC Connection cleanup, if any.
-
-