diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java @ 8210:3bb00338228c

(issue1448) Use left join to permit loads with empty sq_time intervals to be handled.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 05 Sep 2014 15:09:44 +0200
parents 5114b643a6d6
children cb25ea4d4551
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Fri Sep 05 18:30:20 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Fri Sep 05 15:09:44 2014 +0200
@@ -140,6 +140,23 @@
             int    kind,
             String description,
             Date   startTime,
+            Date   stopTime
+        ) {
+            this.id          = id;
+            this.kind        = kind;
+            this.description = description;
+            this.startTime   = startTime;
+            this.stopTime    = stopTime;
+            this.sqStartTime = null;
+            this.sqStopTime  = null;
+            this.sqRelId     = 0;
+        }
+
+        public Load(
+            int    id,
+            int    kind,
+            String description,
+            Date   startTime,
             Date   stopTime,
             int    sqRelId,
             Date   sqStartTime,
@@ -153,7 +170,6 @@
             this.sqStartTime = sqStartTime;
             this.sqStopTime  = sqStopTime;
             this.sqRelId     = sqRelId;
-            log.debug("Creating Load with sqrelid: " + sqRelId + " start: "+ sqStartTime);
         }
 
         public int getId() {

http://dive4elements.wald.intevation.org