Project

General

Profile

Revision 1b7f25fe

ID1b7f25fedf8ab2bc651918e9ac00405775af8706
Parent f0fba95f
Child ed925ac3

Added by pplitzner over 2 years ago

ref #6389 avoid service call for icon determination (performance)

  • additionally the service call returned undeterministic results

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateLabelProvider.java
262 262
            if(derivedUnit.getRecordBasis()==SpecimenOrObservationType.PreservedSpecimen){
263 263
                //check for type designation
264 264
                if(typeDesignations.get(derivedUnit)==null){
265
                    for (SpecimenTypeDesignation specimenTypeDesignation : CdmStore.getService(IOccurrenceService.class).listTypeDesignations(derivedUnit, null, null, null, null)) {
265
                    for (SpecimenTypeDesignation specimenTypeDesignation : derivedUnit.getSpecimenTypeDesignations()) {
266 266
                        addTypeDesignation(derivedUnit, specimenTypeDesignation);
267 267
                    }
268 268
                }
......
460 460
                    derivedUnits.add(HibernateProxyHelper.deproxy(specimenOrObservationBase, DerivedUnit.class));
461 461
                }
462 462
            }
463
            typeDesignations = CdmStore.getService(IOccurrenceService.class).listTypeDesignations(derivedUnits, null, null, null, null);
463
            for (DerivedUnit derivedUnit : derivedUnits) {
464
                if(!derivedUnit.getSpecimenTypeDesignations().isEmpty()){
465
                    typeDesignations.put(derivedUnit, derivedUnit.getSpecimenTypeDesignations());
466
                }
467
            }
464 468
        }
465 469
    }
466 470

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)