Revision 2103c420
Added by Andreas Müller almost 6 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/salvador/SalvadorImportTransformer.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
public static UUID uuidSalvadorFeatureVoc = UUID.fromString("a159c5e3-12b3-4c12-85e6-b16220621adc"); |
25 | 25 |
|
26 |
public static UUID uuidSalvadorTextSpecimenOldFeature = UUID.fromString("d29de161-9b8e-4e09-90ce-621946053720"); |
|
27 |
|
|
26 | 28 |
} |
app-import/src/main/java/eu/etaxonomy/cdm/io/salvador/SalvadorSpecimenImport.java | ||
---|---|---|
424 | 424 |
|
425 | 425 |
|
426 | 426 |
private Feature getTexSpecimenFeature() { |
427 |
if (textSpecimenFeature == null){ |
|
428 |
UUID uuidSpecimenTextOld = SalvadorImportTransformer.uuidSalvadorTextSpecimenOldFeature; |
|
429 |
textSpecimenFeature = (Feature)getTermService().find(uuidSpecimenTextOld); |
|
430 |
} |
|
427 | 431 |
if (textSpecimenFeature == null){ |
428 | 432 |
String label = "Text Specimen"; |
429 | 433 |
textSpecimenFeature = Feature.NewInstance(label, label, null); |
... | ... | |
434 | 438 |
"User defined features", "User defined features", null, null); |
435 | 439 |
getVocabularyService().save(voc); |
436 | 440 |
} |
441 |
textSpecimenFeature.setUuid(SalvadorImportTransformer.uuidSalvadorTextSpecimenOldFeature); |
|
437 | 442 |
voc.addTerm(textSpecimenFeature); |
438 | 443 |
getTermService().saveOrUpdate(textSpecimenFeature); |
439 | 444 |
} |
Also available in: Unified diff
ref #6265 fix feature uuids for Salvador text specimen