diff flys-backend/src/main/java/de/intevation/flys/model/SedimentDensity.java @ 2817:8979f2294af9

Finished parsing MINFO specific sediment density. flys-backend/trunk@4234 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 13 Apr 2012 11:45:29 +0000
parents a36a5407acbf
children 7c1dd9c3f6bd
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/SedimentDensity.java	Fri Apr 13 10:59:15 2012 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/SedimentDensity.java	Fri Apr 13 11:45:29 2012 +0000
@@ -25,16 +25,22 @@
 
     private Depth depth;
 
+    private Unit unit;
+
     private List<SedimentDensityValue> values;
 
+    private String description;
+
 
     public SedimentDensity() {
     }
 
 
-    public SedimentDensity(River river, Depth depth) {
-        this.river = river;
-        this.depth = depth;
+    public SedimentDensity(River river, Depth depth, Unit unit, String desc) {
+        this.river       = river;
+        this.depth       = depth;
+        this.unit        = unit;
+        this.description = desc;
     }
 
     @Id
@@ -74,12 +80,35 @@
         this.depth = depth;
     }
 
+    @OneToOne
+    @JoinColumn(name = "unit_id")
+    public Unit getUnit() {
+        return unit;
+    }
+
+    public void setUnit(Unit unit) {
+        this.unit = unit;
+    }
+
+    @Column(name = "description")
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
     @OneToMany
     @JoinColumn(name="sediment_density_id")
     public List<SedimentDensityValue> getValues() {
         return values;
     }
 
+    public void setValues(List<SedimentDensityValue> values) {
+        this.values = values;
+    }
+
     public void addValue(SedimentDensityValue value) {
         this.values.add(value);
     }

http://dive4elements.wald.intevation.org