-
Bug
-
Resolution: Done
-
Major
-
7.4.1.GA
If "Audited" Entity is used, CustomInterceptor#beforeTransactionCompletion() will be invoked 2 times due to the following code block:
(In the beforeCompletion() method, beforeTransactionCompletion() will be invoked.)
org.hibernate.internal.SessionImpl.addSharedSessionTransactionObserver()
{{}}
@Override
protected void addSharedSessionTransactionObserver(TransactionCoordinator transactionCoordinator) {
this.transactionObserver = new TransactionObserver() {
@Override
public void afterBegin() {
}
@Override
public void beforeCompletion() {
if ( isOpen() && getHibernateFlushMode() != FlushMode.MANUAL )
actionQueue.beforeTransactionCompletion();
try
catch (Throwable t)
{ log.exceptionInBeforeTransactionCompletionInterceptor( t ); }}
@Override
public void afterCompletion(boolean successful, boolean delayed) {
afterTransactionCompletion( successful, delayed );
if ( !isClosed() && autoClose )
}
};
transactionCoordinator.addObserver(transactionObserver);
}
- is incorporated by
-
JBEAP-22587 (7.4.z) Upgrade Hibernate ORM from 5.3.23.Final-redhat-00001 to 5.3.24.Final-redhat-00001
- Closed
- is related to
-
HHH-14540 Loading...