commit | 7fee857d4d98dfef58c6072a3b85ec027ce35dc4 | [log] [tgz] |
---|---|---|
author | johnbracken <john.b.bracken@oracle.com> | Sun Jan 06 14:06:25 2013 -0800 |
committer | johnbracken <john.b.bracken@oracle.com> | Sun Jan 06 14:06:25 2013 -0800 |
tree | f855d1cac8a07841c5ac87efe211c474733f083d | |
parent | 331b007993fb2c8cdbf2876ea8a5bc1f05b65037 [diff] |
Suppress system.indexes table name from the listing method results.
diff --git a/tools/org.eclipse.persistence.tools.gen.nosql/src/org/eclipse/persistence/tools/gen/nosql/mongo/MongoEntityGenerator.java b/tools/org.eclipse.persistence.tools.gen.nosql/src/org/eclipse/persistence/tools/gen/nosql/mongo/MongoEntityGenerator.java index 583abd9..47e752e 100644 --- a/tools/org.eclipse.persistence.tools.gen.nosql/src/org/eclipse/persistence/tools/gen/nosql/mongo/MongoEntityGenerator.java +++ b/tools/org.eclipse.persistence.tools.gen.nosql/src/org/eclipse/persistence/tools/gen/nosql/mongo/MongoEntityGenerator.java
@@ -102,7 +102,6 @@ this.rowSampleSize = rowSampleSize; this.connection = new Mongo(new ServerAddress(host, port)); this.database = this.connection.getDB(dbName); - this.database.getCollectionNames(); } /** @@ -492,7 +491,11 @@ * @return the name of the Mongo collections. */ public Set<String> listCollectionNames() { - return this.database.getCollectionNames(); + Set<String> collectionNames = this.database.getCollectionNames(); + // Remove the internall system.indexes table name + collectionNames.remove("system.indexes"); + + return collectionNames; } /**