]
Steve Ebersole closed HHH-1111.
-------------------------------
Closing stale resolved issues
JDBCTransaction.rollback() results in a call to
Interceptor.beforeTransactionCompletion()
-----------------------------------------------------------------------------------------
Key: HHH-1111
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1111
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.0.5
Environment: Hibernate 3.0.5, DB2 8.2
Reporter: Ethan Wallwork
Fix For: 3.1 rc3
The org.hibernate.Interceptor.beforeTransactionCompletion(Transaction) method is
documented
"Called before a transaction is committed (but not before rollback)." However
the org.hibernate.JDBCTransaction.rollback() method calls
org.hibernate.jdbc.JDBCContext.beforeTransactionCompletion(Transaction) which calls
org.hibernate.SessionImpl.beforeTransactionCompletion(Transaction) which calls
Interceptor.beforeTransactionCompletion(Transaction).
Furthermore, the Transaction.wasRolledBack() method returns false when called from the
Interceptor.beforeTransactionCompletion(Transaction) method, making this problem more
difficult to work around.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: