HHH-6267 : Minor fixes for Plumb MetadataImplementor into service initiators
This commit is contained in:
parent
8a0eeedec8
commit
6b3d428366
|
@ -561,8 +561,7 @@ public final class SessionFactoryImpl
|
||||||
this.typeResolver = metadata.getTypeResolver().scope( this );
|
this.typeResolver = metadata.getTypeResolver().scope( this );
|
||||||
this.typeHelper = new TypeLocatorImpl( typeResolver );
|
this.typeHelper = new TypeLocatorImpl( typeResolver );
|
||||||
|
|
||||||
this.filters = new HashMap();
|
this.filters = new HashMap<String, FilterDefinition>( metadata.getFilterDefinitions() );
|
||||||
this.filters.putAll( metadata.getFilterDefinitions() );
|
|
||||||
|
|
||||||
LOG.debugf("Session factory constructed with filter configurations : %s", filters);
|
LOG.debugf("Session factory constructed with filter configurations : %s", filters);
|
||||||
LOG.debugf("Instantiating session factory with properties: %s", configurationService.getSettings() );
|
LOG.debugf("Instantiating session factory with properties: %s", configurationService.getSettings() );
|
||||||
|
|
|
@ -40,8 +40,8 @@ import org.hibernate.service.spi.SessionFactoryServiceRegistry;
|
||||||
public class SessionFactoryServiceRegistryImpl extends AbstractServiceRegistryImpl implements SessionFactoryServiceRegistry {
|
public class SessionFactoryServiceRegistryImpl extends AbstractServiceRegistryImpl implements SessionFactoryServiceRegistry {
|
||||||
|
|
||||||
// for now we need to hold on to the Configuration... :(
|
// for now we need to hold on to the Configuration... :(
|
||||||
private Configuration configuration;
|
private final Configuration configuration;
|
||||||
private MetadataImplementor metadata;
|
private final MetadataImplementor metadata;
|
||||||
private final SessionFactoryImplementor sessionFactory;
|
private final SessionFactoryImplementor sessionFactory;
|
||||||
|
|
||||||
@SuppressWarnings( {"unchecked"})
|
@SuppressWarnings( {"unchecked"})
|
||||||
|
|
Loading…
Reference in New Issue