[Lada-commits] [PATCH] Use persist instead of create to save a new probe object

Wald Commits scm-commit at wald.intevation.org
Thu Dec 5 11:19:05 CET 2013


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1386238566 -3600
# Node ID b580503410405d31eb59ad869305cc3d0c9ce714
# Parent  ab0307eccee8f142fad662595b89cf1038de75b8
Use persist instead of create to save a new probe object.

diff -r ab0307eccee8 -r b58050341040 src/main/java/de/intevation/lada/data/LProbeRepository.java
--- 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;
         }


More information about the Lada-commits mailing list