]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5440: Send all indexable columns and table names in a single call.
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 7 Aug 2012 21:40:08 +0000 (14:40 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 7 Aug 2012 21:40:08 +0000 (14:40 -0700)
services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java

index a952c592d46ab22c12235db92ec4dc1595da21af..af66f475bb57656895865f82e312a40400bc8795 100644 (file)
@@ -226,14 +226,15 @@ public class ServiceMain {
          indexableFields.put("name", NUXEO_HIERARCHY_TABLE_NAME);\r
        \r
          AddIndices addindices = new AddIndices();\r
+         List<Field> fields = new ArrayList<Field>();\r
          for (Map.Entry<String,String> entry : indexableFields.entrySet()) {\r
-             List<Field> fields = new ArrayList<Field>();\r
              Field field = new Field();\r
-             field.setTable(entry.getValue());\r
              field.setCol(entry.getKey());\r
+             field.setTable(entry.getValue());\r
              fields.add(field);\r
-             addindices.onRepositoryInitialized(dataSource, null, fields, null);\r
          }\r
+         addindices.onRepositoryInitialized(dataSource, null, fields, null);\r
+\r
     }\r
 \r
     public void firePostInitHandlers() throws Exception {\r