[Lada-commits] [PATCH 1 of 2] When editing status, record resulting new entry with current time
Wald Commits
scm-commit at wald.intevation.org
Wed Dec 9 16:52:08 CET 2015
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1449674997 -3600
# Branch statusworkflow
# Node ID dcf8c49d2e57692cf7baed174431e817628f223d
# Parent cb6598eaa93a07f04f83cbb349fd3088ae0466b0
When editing status, record resulting new entry with current time.
diff -r cb6598eaa93a -r dcf8c49d2e57 src/main/java/de/intevation/lada/rest/StatusService.java
--- a/src/main/java/de/intevation/lada/rest/StatusService.java Tue Dec 08 15:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/StatusService.java Wed Dec 09 16:29:57 2015 +0100
@@ -8,6 +8,8 @@
package de.intevation.lada.rest;
import java.util.List;
+import java.util.Date;
+import java.sql.Timestamp;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
@@ -328,7 +330,7 @@
LMessung messung = defaultRepo.getByIdPlain(
LMessung.class, status.getMessungsId(), "land");
LStatusProtokoll statusNew = new LStatusProtokoll();
- statusNew.setDatum(status.getDatum());
+ statusNew.setDatum(new Timestamp(new Date().getTime()));
statusNew.setErzeuger(status.getErzeuger());
statusNew.setMessungsId(status.getMessungsId());
statusNew.setStatusStufe(status.getStatusStufe());
More information about the Lada-commits
mailing list