changeset 394:b58050341040

Use persist instead of create to save a new probe object.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 05 Dec 2013 11:16:06 +0100
parents ab0307eccee8
children 479728d36809
files src/main/java/de/intevation/lada/data/LProbeRepository.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/data/LProbeRepository.java	Thu Dec 05 09:55:13 2013 +0100
+++ b/src/main/java/de/intevation/lada/data/LProbeRepository.java	Thu Dec 05 11:16:06 2013 +0100
@@ -148,7 +148,7 @@
         // Try to save the new LProbe.
         try {
             Map<String, Integer> warnings = validator.validate(probe, false);
-            manager.create(probe);
+            manager.persist(probe);
             response.setWarnings(warnings);
             return response;
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)