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.typeHelper = new TypeLocatorImpl( typeResolver );
|
||||
|
||||
this.filters = new HashMap();
|
||||
this.filters.putAll( metadata.getFilterDefinitions() );
|
||||
this.filters = new HashMap<String, FilterDefinition>( metadata.getFilterDefinitions() );
|
||||
|
||||
LOG.debugf("Session factory constructed with filter configurations : %s", filters);
|
||||
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 {
|
||||
|
||||
// for now we need to hold on to the Configuration... :(
|
||||
private Configuration configuration;
|
||||
private MetadataImplementor metadata;
|
||||
private final Configuration configuration;
|
||||
private final MetadataImplementor metadata;
|
||||
private final SessionFactoryImplementor sessionFactory;
|
||||
|
||||
@SuppressWarnings( {"unchecked"})
|
||||
|
|
Loading…
Reference in New Issue