Search in sources :

Example 1 with EntityCopyObserverFactory

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

the class DefaultReactiveMergeEventListener method createEntityCopyObserver.

private EntityCopyObserver createEntityCopyObserver(SessionFactoryImplementor sessionFactory) {
    final ServiceRegistry serviceRegistry = sessionFactory.getServiceRegistry();
    final EntityCopyObserverFactory configurationService = serviceRegistry.getService(EntityCopyObserverFactory.class);
    return configurationService.createEntityCopyObserver();
}
Also used : EntityCopyObserverFactory(org.hibernate.event.spi.EntityCopyObserverFactory) ServiceRegistry(org.hibernate.service.ServiceRegistry)

Aggregations

EntityCopyObserverFactory (org.hibernate.event.spi.EntityCopyObserverFactory)1 ServiceRegistry (org.hibernate.service.ServiceRegistry)1