Author: shawkins
Date: 2012-02-16 11:09:23 -0500 (Thu, 16 Feb 2012)
New Revision: 3889
Modified:
branches/7.7.x/api/src/main/java/org/teiid/metadata/MetadataFactory.java
Log:
TEIID-1936 refining the set method for the metadatastore
Modified: branches/7.7.x/api/src/main/java/org/teiid/metadata/MetadataFactory.java
===================================================================
--- branches/7.7.x/api/src/main/java/org/teiid/metadata/MetadataFactory.java 2012-02-15
22:48:46 UTC (rev 3888)
+++ branches/7.7.x/api/src/main/java/org/teiid/metadata/MetadataFactory.java 2012-02-16
16:09:23 UTC (rev 3889)
@@ -350,5 +350,10 @@
public void setMetadataStore(MetadataStore metadataStore) {
this.store = metadataStore;
+ if (this.store.getSchemas().isEmpty()) {
+ this.store.addSchema(schema);
+ } else {
+ this.schema = this.store.getSchemas().values().iterator().next();
+ }
}
}
Show replies by date