changeset 4245:6302db90b63f

Add MeasurementStation to the River Allow to retrieve the MeasurementStation via the River from the database.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 24 Oct 2012 15:56:19 +0200
parents 3e62c8f8d475
children cac0878b4a92
files flys-backend/src/main/java/de/intevation/flys/model/River.java flys-client/src/main/java/de/intevation/flys/client/client/services/RiverInfoService.java flys-client/src/main/java/de/intevation/flys/client/client/services/RiverInfoServiceAsync.java flys-client/src/main/java/de/intevation/flys/client/server/RiverInfoServiceImpl.java
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/River.java	Wed Oct 24 15:53:58 2012 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/model/River.java	Wed Oct 24 15:56:19 2012 +0200
@@ -56,6 +56,8 @@
 
     private List<Gauge> gauges;
 
+    private List<MeasurementStation> measurementstations;
+
     private Unit wstUnit;
 
     @Id
@@ -121,6 +123,16 @@
     }
 
 
+    @OneToMany
+    @JoinColumn(name="river_id")
+    public List<MeasurementStation> getMeasurementStations() {
+        return measurementstations;
+    }
+
+    public void setMeasurementStations(List<MeasurementStation> mstations) {
+        this.measurementstations = mstations;
+    }
+
     @OneToOne
     @JoinColumn(name = "wst_unit_id" )
     public Unit getWstUnit() {

http://dive4elements.wald.intevation.org