Revision 9dc896c9
Added by Andreas Müller almost 7 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/utils/ImportDeduplicationHelper.java | ||
---|---|---|
31 | 31 |
import eu.etaxonomy.cdm.model.media.RightsType; |
32 | 32 |
import eu.etaxonomy.cdm.model.name.HybridRelationship; |
33 | 33 |
import eu.etaxonomy.cdm.model.name.INonViralName; |
34 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
34 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
35 | 35 |
import eu.etaxonomy.cdm.model.reference.INomenclaturalReference; |
36 | 36 |
import eu.etaxonomy.cdm.model.reference.Reference; |
37 | 37 |
import eu.etaxonomy.cdm.strategy.match.DefaultMatchStrategy; |
... | ... | |
65 | 65 |
|
66 | 66 |
|
67 | 67 |
private IMatchStrategy referenceMatcher = DefaultMatchStrategy.NewInstance(Reference.class); |
68 |
private IMatchStrategy nameMatcher = DefaultMatchStrategy.NewInstance(TaxonNameBase.class);
|
|
68 |
private IMatchStrategy nameMatcher = DefaultMatchStrategy.NewInstance(TaxonName.class); |
|
69 | 69 |
|
70 | 70 |
|
71 | 71 |
// ************************** FACTORY *******************************/ |
... | ... | |
364 | 364 |
private void initNameMap(STATE state) { |
365 | 365 |
if (!nameMapIsInitialized && repository != null){ |
366 | 366 |
List<String> propertyPaths = Arrays.asList(""); |
367 |
List<TaxonNameBase<?,?>> existingNames = repository.getNameService().list(null, null, null, null, propertyPaths);
|
|
368 |
for (TaxonNameBase<?,?> name : existingNames){
|
|
367 |
List<TaxonName<?,?>> existingNames = repository.getNameService().list(null, null, null, null, propertyPaths); |
|
368 |
for (TaxonName<?,?> name : existingNames){ |
|
369 | 369 |
putName(name.getTitleCache(), name); |
370 | 370 |
} |
371 | 371 |
nameMapIsInitialized = true; |
Also available in: Unified diff
fix #6368 rename table and class TaxonNameBase