[PATCH 01 of 17] Added model_uuid column to river model

Wald Commits scm-commit at wald.intevation.org
Thu Feb 27 16:47:47 CET 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1393508722 -3600
# Node ID 6ff574778491240ebdac8c21822e97e7776e35ea
# Parent  44a9233c62eb322d952e109256f4fb853c045906
Added model_uuid column to river model.

diff -r 44a9233c62eb -r 6ff574778491 backend/src/main/java/org/dive4elements/river/model/River.java
--- a/backend/src/main/java/org/dive4elements/river/model/River.java	Thu Feb 06 13:22:10 2014 +0100
+++ b/backend/src/main/java/org/dive4elements/river/model/River.java	Thu Feb 27 14:45:22 2014 +0100
@@ -61,6 +61,8 @@
 
     private boolean kmUp;
 
+    private String modelUuid;
+
     private List<Gauge> gauges;
 
     private List<MeasurementStation> measurementstations;
@@ -111,12 +113,22 @@
         this.kmUp = kmUp;
     }
 
+    @Column(name = "model_uuid")
+    public String getModelUuid() {
+        return this.modelUuid;
+    }
+
+    public void setModelUuid(String modelUuid) {
+        this.modelUuid = modelUuid;
+    }
+
     public River() {
     }
 
-    public River(String name, Unit wstUnit) {
-        this.name    = name;
-        this.wstUnit = wstUnit;
+    public River(String name, Unit wstUnit, String modelUuid) {
+        this.name      = name;
+        this.modelUuid = modelUuid;
+        this.wstUnit   = wstUnit;
     }
 
     @OneToMany


More information about the Dive4elements-commits mailing list