private Map<TaxonBase, TaxonBaseDeletionConfigurator> toDeletes = new HashMap<>();
private Set<Synonym> toSaveNewSynonyms = new HashSet<>();
- private List<TaxonBase> toSaveConcepts = new ArrayList<>();
- private List<TaxonName> toSaveNewNames = new ArrayList<>();
+ private Set<TaxonBase> toSaveConcepts = new HashSet<>();
+ private Set<TaxonName> toSaveNewNames = new HashSet<>();
private Set<AbstractPostOperation> operations = new HashSet<>();
// }
if (!toSaveNewNames.isEmpty()){
- CdmStore.getService(INameService.class).merge(toSaveNewNames, true);
+ List<TaxonName> listNames = new ArrayList(toSaveNewNames);
+ CdmStore.getService(INameService.class).merge(listNames, true);
}
if (!toSaveConcepts.isEmpty()){
- CdmStore.getService(ITaxonService.class).merge(toSaveConcepts, true);
+ List<TaxonBase> listTaxa = new ArrayList(toSaveConcepts);
+ CdmStore.getService(ITaxonService.class).merge(listTaxa, true);
}
toSaveNewNames.clear();