org.hibernate.transaction
Class JTATransaction

Transaction implementation based on transaction management through
a JTA UserTransaction. Similar to CMTTransaction, except
here we are actually managing the transactions through the Hibernate
transaction mechanism.

begin

commit

Flush the associated Session and end the unit of work (unless
we are in FlushMode.MANUAL.
This method will commit the underlying transaction if and only
if the underlying transaction was initiated by this object.

wasRolledBack

This only accounts for actions initiated from this local transaction.
If, for example, the underlying transaction is forced to rollback via
some other means, this method still reports false because the rollback
was not initiated from here.