Project

General

Profile

Revision 1e037cd6

ID1e037cd6dfb9fbf45abd4c0c43d6472068c30b87
Parent 75bfa4b6
Child c4bfb623

Added by Patrick Plitzner about 1 year ago

ref #7439 SQLize title search for occurrences

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/OccurrenceServiceImpl.java
1406 1406
            if(occurrenceConfig.isRetrieveIndirectlyAssociatedSpecimens() || !occurrenceConfig.getAssignmentStatus().equals(AssignmentStatus.ALL_SPECIMENS)){
1407 1407
                List<SpecimenOrObservationBase> occurrences = new ArrayList<>();
1408 1408
                occurrences.addAll(dao.findOccurrences(occurrenceConfig.getClazz(),
1409
                        occurrenceConfig.getTitleSearchString(), occurrenceConfig.getSignificantIdentifier(),
1409
                        occurrenceConfig.getTitleSearchStringSqlized(), occurrenceConfig.getSignificantIdentifier(),
1410 1410
                        occurrenceConfig.getSpecimenType(), taxon, taxonName, occurrenceConfig.getMatchMode(), null, null,
1411 1411
                        occurrenceConfig.getOrderHints(), occurrenceConfig.getPropertyPaths()));
1412 1412
                occurrences = filterOccurencesByAssignmentAndHierarchy(occurrenceConfig, occurrences, taxon, taxonName);
......
1414 1414
            }
1415 1415

  
1416 1416
            return dao.countOccurrences(occurrenceConfig.getClazz(),
1417
                    occurrenceConfig.getTitleSearchString(), occurrenceConfig.getSignificantIdentifier(),
1417
                    occurrenceConfig.getTitleSearchStringSqlized(), occurrenceConfig.getSignificantIdentifier(),
1418 1418
                    occurrenceConfig.getSpecimenType(), taxon, taxonName, occurrenceConfig.getMatchMode(), null, null,
1419 1419
                    occurrenceConfig.getOrderHints(), occurrenceConfig.getPropertyPaths());
1420 1420
        }
1421 1421
        else{
1422
            return dao.countByTitle(config.getTitleSearchString());
1422
            return super.countByTitle(config);
1423 1423
        }
1424 1424
    }
1425 1425

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)