this.registerPostCommitListeneres = registerPostCommitListeneres;
}
public void injectLifecycle(SessionFactory sessionFactory, Esi4JBatchedEventProcessor batchedEventProcessor) {
SessionFactoryImpl sessionFactoryImpl = (SessionFactoryImpl) sessionFactory;
EventListeners eventListeners = sessionFactoryImpl.getEventListeners();
Object listener = doCreateListener(sessionFactoryImpl, batchedEventProcessor);
if (listener instanceof PostInsertEventListener) {
if (registerPostCommitListeneres) {