Revision 5024f433
Added by Andreas Müller over 2 years ago
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/term/TermVocabularyDaoImplTest.java | ||
---|---|---|
184 | 184 |
@SuppressWarnings("unchecked") |
185 | 185 |
TermVocabulary<NamedArea> continentVoc = dao.findByUuid(NamedArea.uuidContinentVocabulary); |
186 | 186 |
continentVoc.addRepresentation(Representation.NewInstance("Kontinente", "Kontinente", "Kont.", Language.GERMAN())); |
187 |
// dao.flush(); |
|
188 | 187 |
vocDtos = dao.findVocabularyDtoByTermTypes(termTypes, true); |
189 | 188 |
Assert.assertEquals("Deduplication for representations does not work", 4, vocDtos.size()); |
190 | 189 |
int repSize = vocDtos.stream().filter(voc->voc.getUuid().equals(NamedArea.uuidContinentVocabulary)).findFirst().get().getRepresentations().size(); |
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/description/DescriptionAggregationBase.java | ||
---|---|---|
277 | 277 |
} |
278 | 278 |
} |
279 | 279 |
addAggregationResultToDescription(targetDescription, resultHolder); |
280 |
removeDescriptionIfEmpty(targetDescription, resultHolder); |
|
280 |
removeDescriptionIfEmpty(targetDescription, resultHolder); //AM: necessary? Seems to be done in addAggregationResultToDescription() already...
|
|
281 | 281 |
deleteDescriptionsToDelete(resultHolder); |
282 | 282 |
} |
283 | 283 |
|
Also available in: Unified diff
javadoc and minor