[hibernate-dev] Transaction API

Steve Ebersole steve at hibernate.org
Mon Sep 27 23:49:05 EDT 2010


Currently there is a big discrepancy between the documentation for some
of the methods on org.hibernate.Transaction and the actual code.
Specifically the methods isActive(), wasRolledBack() and wasCommitted()
explicitly state that they only account for the "local state" of the
transaction object, not the underlying transaction.

However, the code explicitly checks the current status of JTA
transactions to responded to these methods.

We need to fix one or the other.  Personally I do not follow the use of
these methods too much, so asking for feedback on which way is more
useful.

-- 
Steve Ebersole <steve at hibernate.org>
http://hibernate.org




More information about the hibernate-dev mailing list