diff flys-backend/src/main/java/de/intevation/flys/model/Gauge.java @ 2371:fe89d6cf55fb

Added support for official gauge numbers. flys-backend/trunk@3464 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 19 Dec 2011 11:21:25 +0000
parents 5a3109b8475f
children aa777d1aba38
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/Gauge.java	Wed Nov 30 12:14:41 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/Gauge.java	Mon Dec 19 11:21:25 2011 +0000
@@ -36,6 +36,7 @@
     private BigDecimal station;
     private BigDecimal aeo;
     private BigDecimal datum;
+    private Long       officialNumber;
     private Range      range;
 
     private List<DischargeTable> dischargeTables;
@@ -52,14 +53,16 @@
         BigDecimal station,
         BigDecimal aeo,
         BigDecimal datum,
+        Long       officialNumber,
         Range      range
     ) {
-        this.name    = name;
-        this.river   = river;
-        this.station = station;
-        this.aeo     = aeo;
-        this.datum   = datum;
-        this.range   = range;
+        this.name            = name;
+        this.river           = river;
+        this.station         = station;
+        this.aeo             = aeo;
+        this.datum           = datum;
+        this.officialNumber  = officialNumber;
+        this.range           = range;
     }
 
     @Id
@@ -125,6 +128,15 @@
         this.datum = datum;
     }
 
+    @Column(name = "official_number")
+    public Long getOfficialNumber() {
+        return officialNumber;
+    }
+
+    public void setOfficialNumber(Long officialNumber) {
+        this.officialNumber = officialNumber;
+    }
+
     @OneToOne
     @JoinColumn(name = "range_id" )
     public Range getRange() {

http://dive4elements.wald.intevation.org