diff backend/src/main/java/org/dive4elements/river/importer/ImportBedHeight.java @ 9038:4c5eeaff554c

Database column "comment" renamed to "notes" (restrictions in Oracle)
author mschaefer
date Wed, 02 May 2018 06:56:21 +0200
parents 392bbcd8a88b
children
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/ImportBedHeight.java	Mon Apr 30 18:06:31 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/ImportBedHeight.java	Wed May 02 06:56:21 2018 +0200
@@ -37,7 +37,7 @@
     protected ImportElevationModel curElevationModel;
     protected ImportElevationModel oldElevationModel;
     protected String sounding_width_info;
-    protected String comment;
+    protected String notes;
 
     protected List<ImportBedHeightValue> values;
 
@@ -102,8 +102,8 @@
         this.sounding_width_info = sounding_width_info;
     }
 
-    public void setComment(final String comment) {
-        this.comment = comment;
+    public void setNotes(final String notes) {
+        this.notes = notes;
     }
 
     public void addValue(final ImportBedHeightValue value) {
@@ -180,7 +180,7 @@
             log.info("Create new BedHeight DB instance.");
             this.peer = new BedHeight(river, this.year, theType, this.locationSystem.getPeer(), theCurModel,
                     (this.oldElevationModel != null) ? this.oldElevationModel.getPeer() : null, this.range.getPeer(river),
-                            this.evaluationBy, this.description, this.sounding_width_info, this.comment);
+                            this.evaluationBy, this.description, this.sounding_width_info, this.notes);
             session.save(this.peer);
             this.storeMode = StoreMode.INSERT;
         }

http://dive4elements.wald.intevation.org