1 Reply Latest reply on Apr 10, 2009 4:26 AM by Adam Warski

    Revision not transactional?

    Nuno Ochoa Newbie

      Hi all,

      I'm trying to use Envers with a JPA persistence unit without JTA transaction scope.
      I've created a new RevisionEntity with the correspondent RevisionListener. When I was testing this implementation I noticed that when a exception occurs in my RevisionListener, the transaction is not all rollbacked, that is, the "operational" data is committed, but the audit data is not.

      Is this an expected behavior? Shouldn't the transaction be all rollbacked?

      I'm using Hibernate 3.3.1 and Envers 1.2.0.GA, with hibernate.transaction.factory_class property set to org.hibernate.transaction.JDBCTransactionFactory.

      Thanks,
      Nuno