[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1111) JDBCTransaction.rollback() results in a call to Interceptor.beforeTransactionCompletion()
Steve Ebersole (JIRA)
noreply at atlassian.com
Mon Mar 21 13:00:46 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list