HHH-11232 - Session is closed bug with Envers 5.2.x + JTA

This commit is contained in:
Andrea Boriero 2016-11-11 16:40:51 +00:00
parent c17c1b5aae
commit b14e69089f
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class AuditProcess implements BeforeTransactionCompletionProcess {
}
// see: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178431
if ( FlushModeType.COMMIT.equals( session.getFlushMode() ) ) {
if ( FlushModeType.COMMIT.equals( session.getFlushMode() ) || session.isClosed() ) {
Session temporarySession = null;
try {
temporarySession = session.sessionWithOptions()