[Lada-commits] [PATCH 1 of 2] Removed code duplicated database trigger since rev 9121d99a471e

Wald Commits scm-commit at wald.intevation.org
Tue Jun 28 10:32:34 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1467041728 -7200
# Node ID a3f9cf7e38c1a83ce1710da8dbebb2f9cffa1432
# Parent  962439442e48d24f18ca04494860a88ab4d0f664
Removed code duplicated database trigger since rev 9121d99a471e.

diff -r 962439442e48 -r a3f9cf7e38c1 src/main/java/de/intevation/lada/rest/MessprogrammMmtService.java
--- a/src/main/java/de/intevation/lada/rest/MessprogrammMmtService.java	Mon Jun 27 17:04:02 2016 +0200
+++ b/src/main/java/de/intevation/lada/rest/MessprogrammMmtService.java	Mon Jun 27 17:35:28 2016 +0200
@@ -217,7 +217,7 @@
         ) {
             return new Response(false, 699, null);
         }
-        messprogrammmmt.setLetzteAenderung(new Timestamp(new Date().getTime()));
+
         Response response = defaultRepo.update(messprogrammmmt, "land");
         if (!response.getSuccess()) {
             return response;
diff -r 962439442e48 -r a3f9cf7e38c1 src/main/java/de/intevation/lada/rest/MessprogrammService.java
--- a/src/main/java/de/intevation/lada/rest/MessprogrammService.java	Mon Jun 27 17:04:02 2016 +0200
+++ b/src/main/java/de/intevation/lada/rest/MessprogrammService.java	Mon Jun 27 17:35:28 2016 +0200
@@ -320,7 +320,6 @@
             return response;
         }
 
-        messprogramm.setLetzteAenderung(new Timestamp(new Date().getTime()));
         if (messprogramm.getUmwId() == null || messprogramm.getUmwId().equals("")) {
             messprogramm = factory.findUmweltId(messprogramm);
         }
diff -r 962439442e48 -r a3f9cf7e38c1 src/main/java/de/intevation/lada/rest/OrtService.java
--- a/src/main/java/de/intevation/lada/rest/OrtService.java	Mon Jun 27 17:04:02 2016 +0200
+++ b/src/main/java/de/intevation/lada/rest/OrtService.java	Mon Jun 27 17:35:28 2016 +0200
@@ -286,7 +286,6 @@
             return response;
         }
 
-        ort.setLetzteAenderung(new Timestamp(new Date().getTime()));
         Response response = defaultRepo.update(ort, "land");
         if (!response.getSuccess()) {
             return response;


More information about the Lada-commits mailing list