Hibernate Transaction ID

I need to get the hibernate transaction id. This identifier must be unique for each transaction. I tried using session.getTransaction (). HashCode (), but I believe this value is not unique.

+3


source to share


1 answer


The transaction ID is database specific. Therefore, you will need to invoke your own SQL query to get this information from your Hibernate transaction.

Examples:

Get current database transaction id using jdbc / hibernate?



SQL Server Triggers - Grouping by Transaction

http://hemantoracledba.blogspot.com/2014/06/getting-your-transaction-id.html

0


source







All Articles