[Dive4elements-commits] [PATCH 3 of 4] Renamed description to comment to fit the schema

Wald Commits scm-commit at wald.intevation.org
Tue Mar 26 14:03:48 CET 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1364302848 -3600
# Node ID 1cc82e328658be3b7d9193a99a8596d0d9bed7ed
# Parent  473edafe4cb12d816b4e1383df48deace8d5e29a
Renamed description to comment to fit the schema.

diff -r 473edafe4cb1 -r 1cc82e328658 flys-backend/src/main/java/de/intevation/flys/model/MeasurementStation.java
--- a/flys-backend/src/main/java/de/intevation/flys/model/MeasurementStation.java	Tue Mar 26 13:56:56 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/MeasurementStation.java	Tue Mar 26 14:00:48 2013 +0100
@@ -21,7 +21,7 @@
     private String measurementType;
     private String riverside;
     private String operator;
-    private String description;
+    private String comment;
 
     private Double station;
     private Range range;
@@ -37,7 +37,7 @@
 
     public MeasurementStation(River river, String name, String measurementType,
         String riverside, Double station, Range range, Gauge gauge,
-        TimeInterval observationTimerange, String operator, String description) {
+        TimeInterval observationTimerange, String operator, String comment) {
         this.river = river;
         this.name = name;
         this.measurementType = measurementType;
@@ -47,7 +47,7 @@
         this.gauge = gauge;
         this.observationTimerange = observationTimerange;
         this.operator = operator;
-        this.description = description;
+        this.comment = comment;
     }
 
     @Id
@@ -147,13 +147,12 @@
         this.operator = operator;
     }
 
-    @Column(name = "description")
-    public String getDescription() {
-        return description;
+    @Column(name = "comment")
+    public String getComment() {
+        return comment;
     }
 
-    public void setDescription(String description) {
-        this.description = description;
+    public void setComment(String comment) {
+        this.comment = comment;
     }
-
 }


More information about the Dive4elements-commits mailing list