HHH-6267 : Minor fixes for Plumb MetadataImplementor into service initiators

This commit is contained in:
Gail Badner 2011-05-26 15:23:05 -07:00
parent 8a0eeedec8
commit 6b3d428366
2 changed files with 3 additions and 4 deletions

View File

@ -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() );

View File

@ -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"})