use of org.hibernate.jpa.event.spi.CallbackRegistry in project hibernate-orm by hibernate.
the class EventListenerGroupAppendListenerTest method getCallbackRegistry.
private static CallbackRegistry getCallbackRegistry(MergeEventListener listener) throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException {
Class<?> clazz = Class.forName("org.hibernate.event.internal.AbstractSaveEventListener");
Field field = clazz.getDeclaredField("callbackRegistry");
field.setAccessible(true);
return (CallbackRegistry) field.get(listener);
}
Aggregations