import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
-import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
import eu.etaxonomy.cdm.api.service.IDescriptionService;
import eu.etaxonomy.cdm.api.service.IDescriptiveDataSetService;
-import eu.etaxonomy.cdm.api.service.UpdateResult;
import eu.etaxonomy.cdm.api.service.dto.RowWrapperDTO;
import eu.etaxonomy.cdm.model.description.DescriptiveDataSet;
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
matrix.getDescriptions().stream()
.filter(o->o instanceof RowWrapperDTO)
.forEach(wrapper->save((RowWrapperDTO)wrapper));
- //save data set
- CdmStore.getService(IDescriptiveDataSetService.class).merge(descriptiveDataSet);
-
-// //save update results (taxon with aggregated description)
-// if(updateResults!=null){
-// updateResults.forEach(result->
-// CdmStore.getService(result.getCdmEntity()).merge(result.getCdmEntity()));
-// }
+ //save data set
+ CdmStore.getService(IDescriptiveDataSetService.class).merge(descriptiveDataSet, true);
conversation.commit();
- updateResults = null;
dirty.setDirty(false);
}