HHH-7029 - prependListeners changed to appendListeners in chapter 7.9.1. Integrator use-cases example
This commit is contained in:
parent
c8aa47ba22
commit
669ec5002f
|
@ -18,6 +18,6 @@ public class MyIntegrator implements org.hibernate.integrator.spi.Integrator {
|
||||||
// 2) This form adds the specified listener(s) to the beginning of the listener chain
|
// 2) This form adds the specified listener(s) to the beginning of the listener chain
|
||||||
eventListenerRegistry.prependListeners( EventType.AUTO_FLUSH, myListenersToBeCalledFirst );
|
eventListenerRegistry.prependListeners( EventType.AUTO_FLUSH, myListenersToBeCalledFirst );
|
||||||
// 3) This form adds the specified listener(s) to the end of the listener chain
|
// 3) This form adds the specified listener(s) to the end of the listener chain
|
||||||
eventListenerRegistry.prependListeners( EventType.AUTO_FLUSH, myListenersToBeCalledLast );
|
eventListenerRegistry.appendListeners( EventType.AUTO_FLUSH, myListenersToBeCalledLast );
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue