HHH-6437 - Improve Database to track default Schema object

This commit is contained in:
Steve Ebersole 2011-07-13 18:43:51 -05:00
parent 56aa17b0d5
commit 9972c7ecb7
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class MetadataImpl implements MetadataImplementor, Serializable {
private DefaultIdentifierGeneratorFactory identifierGeneratorFactory = new DefaultIdentifierGeneratorFactory(); private DefaultIdentifierGeneratorFactory identifierGeneratorFactory = new DefaultIdentifierGeneratorFactory();
private final Database database = new Database(); private final Database database;
private final MappingDefaults mappingDefaults; private final MappingDefaults mappingDefaults;
@ -118,6 +118,7 @@ public class MetadataImpl implements MetadataImplementor, Serializable {
public MetadataImpl(MetadataSources metadataSources, Options options) { public MetadataImpl(MetadataSources metadataSources, Options options) {
this.serviceRegistry = metadataSources.getServiceRegistry(); this.serviceRegistry = metadataSources.getServiceRegistry();
this.options = options; this.options = options;
this.database = new Database( options );
this.mappingDefaults = new MappingDefaultsImpl(); this.mappingDefaults = new MappingDefaultsImpl();