Revision d0c54e6d
Added by Andreas Müller almost 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/germanSL/GermanSLTaxonImport.java | ||
---|---|---|
27 | 27 |
import eu.etaxonomy.cdm.model.description.CommonTaxonName; |
28 | 28 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
29 | 29 |
import eu.etaxonomy.cdm.model.location.Country; |
30 |
import eu.etaxonomy.cdm.model.name.HybridRelationship; |
|
31 | 30 |
import eu.etaxonomy.cdm.model.name.IBotanicalName; |
32 |
import eu.etaxonomy.cdm.model.name.NameRelationship; |
|
33 | 31 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
34 | 32 |
import eu.etaxonomy.cdm.model.name.Rank; |
35 | 33 |
import eu.etaxonomy.cdm.model.name.RankClass; |
... | ... | |
189 | 187 |
} |
190 | 188 |
|
191 | 189 |
|
192 |
/** |
|
193 |
* @param name |
|
194 |
*/ |
|
195 |
private void saveNameRelations(TaxonName name) { |
|
196 |
for (HybridRelationship rel: name.getHybridChildRelations()){ |
|
197 |
getNameService().saveOrUpdate(rel.getParentName()); |
|
198 |
} |
|
199 |
for (NameRelationship rel: name.getNameRelations()){ |
|
200 |
getNameService().saveOrUpdate(rel.getFromName()); |
|
201 |
getNameService().saveOrUpdate(rel.getToName()); |
|
202 |
} |
|
203 |
|
|
204 |
} |
|
205 |
|
|
206 | 190 |
|
207 | 191 |
private String removeProparte(String authorStr) { |
208 | 192 |
String regEx = "\\s+p\\.\\s*p\\.$"; |
Also available in: Unified diff
#2937 add hybrid name save to import base class