From: Aron Roberts Date: Tue, 7 Aug 2012 21:40:08 +0000 (-0700) Subject: CSPACE-5440: Send all indexable columns and table names in a single call. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=adc3f39670cdb03a35b10c23c1ae6461c218ec08;p=tmp%2Fjakarta-migration.git CSPACE-5440: Send all indexable columns and table names in a single call. --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java b/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java index a952c592d..af66f475b 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java +++ b/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java @@ -226,14 +226,15 @@ public class ServiceMain { indexableFields.put("name", NUXEO_HIERARCHY_TABLE_NAME); AddIndices addindices = new AddIndices(); + List fields = new ArrayList(); for (Map.Entry entry : indexableFields.entrySet()) { - List fields = new ArrayList(); Field field = new Field(); - field.setTable(entry.getValue()); field.setCol(entry.getKey()); + field.setTable(entry.getValue()); fields.add(field); - addindices.onRepositoryInitialized(dataSource, null, fields, null); } + addindices.onRepositoryInitialized(dataSource, null, fields, null); + } public void firePostInitHandlers() throws Exception {