HHH-13395 Fix sourcing of service registry

This commit is contained in:
Chris Cranford 2021-11-27 05:22:35 -05:00
parent 3575903139
commit 6c1db681fe
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public class EnversIntegrator implements Integrator {
Metadata metadata,
BootstrapContext bootstrapContext,
SessionFactoryImplementor sessionFactory) {
final ServiceRegistry serviceRegistry = bootstrapContext.getServiceRegistry();
final ServiceRegistry serviceRegistry = sessionFactory.getServiceRegistry();
final EnversService enversService = serviceRegistry.getService( EnversService.class );
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~