Search in sources :

Example 1 with PostCollectionRemoveEventListener

use of org.hibernate.event.spi.PostCollectionRemoveEventListener in project hibernate-orm by hibernate.

the class CollectionRemoveAction method postRemove.

private void postRemove() {
    final EventListenerGroup<PostCollectionRemoveEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_REMOVE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PostCollectionRemoveEvent event = new PostCollectionRemoveEvent(getPersister(), getCollection(), eventSource(), affectedOwner);
    for (PostCollectionRemoveEventListener listener : listenerGroup.listeners()) {
        listener.onPostRemoveCollection(event);
    }
}
Also used : PostCollectionRemoveEvent(org.hibernate.event.spi.PostCollectionRemoveEvent) PostCollectionRemoveEventListener(org.hibernate.event.spi.PostCollectionRemoveEventListener)

Example 2 with PostCollectionRemoveEventListener

use of org.hibernate.event.spi.PostCollectionRemoveEventListener in project hibernate-reactive by hibernate.

the class ReactiveCollectionRemoveAction method postRemove.

private void postRemove() {
    final EventListenerGroup<PostCollectionRemoveEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_REMOVE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PostCollectionRemoveEvent event = new PostCollectionRemoveEvent(getPersister(), getCollection(), eventSource(), affectedOwner);
    for (PostCollectionRemoveEventListener listener : listenerGroup.listeners()) {
        listener.onPostRemoveCollection(event);
    }
}
Also used : PostCollectionRemoveEvent(org.hibernate.event.spi.PostCollectionRemoveEvent) PostCollectionRemoveEventListener(org.hibernate.event.spi.PostCollectionRemoveEventListener)

Aggregations

PostCollectionRemoveEvent (org.hibernate.event.spi.PostCollectionRemoveEvent)2 PostCollectionRemoveEventListener (org.hibernate.event.spi.PostCollectionRemoveEventListener)2