use of org.hibernate.event.spi.InitializeCollectionEventListener in project hibernate-orm by hibernate.
the class SessionImpl method initializeCollection.
@Override
public void initializeCollection(PersistentCollection<?> collection, boolean writing) {
checkOpenOrWaitingForAutoClose();
pulseTransactionCoordinator();
InitializeCollectionEvent event = new InitializeCollectionEvent(collection, this);
fastSessionServices.eventListenerGroup_INIT_COLLECTION.fireEventOnEachListener(event, InitializeCollectionEventListener::onInitializeCollection);
delayedAfterCompletion();
}
use of org.hibernate.event.spi.InitializeCollectionEventListener in project hibernate-orm by hibernate.
the class SessionImpl method initializeCollection.
@Override
public void initializeCollection(PersistentCollection collection, boolean writing) {
checkOpenOrWaitingForAutoClose();
checkTransactionSynchStatus();
InitializeCollectionEvent event = new InitializeCollectionEvent(collection, this);
for (InitializeCollectionEventListener listener : listeners(EventType.INIT_COLLECTION)) {
listener.onInitializeCollection(event);
}
delayedAfterCompletion();
}
Aggregations