Revision c49c125c
Added by Andreas Müller over 15 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/Language.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import java.util.List; |
14 | 14 |
import java.util.Map; |
15 |
import java.util.Set; |
|
15 | 16 |
import java.util.UUID; |
16 | 17 |
|
17 | 18 |
import javax.persistence.Column; |
... | ... | |
286 | 287 |
Language.PORTUGUESE = termVocabulary.findTermByUuid(Language.uuidPortuguese); |
287 | 288 |
Language.RUSSIAN = termVocabulary.findTermByUuid(Language.uuidRussian); |
288 | 289 |
Language.SPANISH = termVocabulary.findTermByUuid(Language.uuidSpanish); |
290 |
addLanguageForVocabularyRepresentation(termVocabulary); |
|
291 |
} |
|
292 |
|
|
293 |
private void addLanguageForVocabularyRepresentation(TermVocabulary<Language> termVocabulary){ |
|
294 |
for (Representation repr : termVocabulary.getRepresentations()){ |
|
295 |
Language lang = repr.getLanguage(); |
|
296 |
if (lang == null){ |
|
297 |
repr.setLanguage(Language.DEFAULT()); |
|
298 |
} |
|
299 |
} |
|
289 | 300 |
} |
290 | 301 |
|
291 | 302 |
|
Also available in: Unified diff
bug fix for add/remove TaxonNameDescription in TaxonNameBase