#5250 Add property paths to speed up search
authorCherian Mathew <c.mathew@bgbm.org>
Tue, 15 Sep 2015 16:44:52 +0000 (18:44 +0200)
committerCherian Mathew <c.mathew@bgbm.org>
Tue, 15 Sep 2015 16:44:52 +0000 (18:44 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java

index cc437488aaf73287944eff9dc011fe589bec495c..847181732677189e6b4284ed319db25991ab02ab 100644 (file)
@@ -170,6 +170,12 @@ public class SearchManager {
                        configurator.setClazz(DerivedUnit.class);
                    }
                }
+               final List<String> OCCURRENCE_INIT_STRATEGY = Arrays.asList(new String[] {
+                       "descriptions",
+                       "identifiers",
+                       "derivationEvents.originals"
+               });
+               configurator.setPropertyPaths(OCCURRENCE_INIT_STRATEGY);
                if(configurator.getClazz().equals(SpecimenOrObservationBase.class)){
                    //get FieldUnits + DerivedUnits
                    configurator.setClazz(DerivedUnit.class);