diff backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/DepthEvolutionSeriesImport.java @ 9032:1f63e9d3b0ec

New columns for bed_height, tkh and depth_evolution, a few syntactic corrections for Oracle
author mschaefer
date Fri, 27 Apr 2018 17:35:12 +0200
parents 50416a0df385
children 4c5eeaff554c
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/DepthEvolutionSeriesImport.java	Fri Apr 27 11:34:04 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/DepthEvolutionSeriesImport.java	Fri Apr 27 17:35:12 2018 +0200
@@ -16,6 +16,7 @@
 import org.dive4elements.river.importer.common.AbstractSeriesImport;
 import org.dive4elements.river.model.River;
 import org.dive4elements.river.model.sinfo.DepthEvolution;
+import org.dive4elements.river.model.sinfo.DepthEvolution.Group;
 import org.dive4elements.river.model.sinfo.DepthEvolutionValue;
 import org.hibernate.SQLQuery;
 import org.hibernate.Session;
@@ -32,6 +33,8 @@
 
     private static Logger log = Logger.getLogger(DepthEvolutionSeriesImport.class);
 
+    private Group group;
+
     private Integer start_year;
 
     private Integer reference_year;
@@ -54,6 +57,10 @@
 
     /***** METHODS *****/
 
+    public void setGroup(final Group group) {
+        this.group = group;
+    }
+
     public void setStart_year(final Integer start_year) {
         this.start_year = start_year;
     }
@@ -100,6 +107,6 @@
     @Override
     public DepthEvolution createSeriesItem(final River river) {
         return new DepthEvolution(river, this.filename, this.kmrange_info, this.comment, this.start_year, this.reference_year, this.curr_sounding,
-                this.old_sounding, this.curr_glw, this.old_glw);
+                this.old_sounding, this.curr_glw, this.old_glw, this.group);
     }
 }
\ No newline at end of file

http://dive4elements.wald.intevation.org