ref #5448 Remove unnecessary saving
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 21 Sep 2016 10:00:44 +0000 (12:00 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 21 Sep 2016 10:00:44 +0000 (12:00 +0200)
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportClassification.java

index 76d89953446c5601200f03ca530998d2ccf7e4d9..640839fbf5ddaaa28d47b46d4d4e8d6218f59ea6 100644 (file)
@@ -277,12 +277,6 @@ public class RedListGefaesspflanzenImportClassification extends DbImportBase<Red
 
             taxon.setSec(classification.getReference());
             classification.addChildTaxon(taxon, null, null);
-            //TODO is saving and setting the title cache to null neccessary?
-            getTaxonService().saveOrUpdate(taxon);
-            getTaxonService().saveOrUpdate(gesamtListeTaxon);
-            if(checklisteTaxon!=null){
-                getTaxonService().saveOrUpdate(checklisteTaxon);
-            }
             taxon.setTitleCache(null);//Reset title cache to see sec ref in title
         }
     }