Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/flys/model/HYKFormation.java @ 1214:32ee9babe42c
Schema: Argh! Added distance_{vl|hf|vr} to
wrong table.
flys-backend/trunk@2340 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 15 Jul 2011 15:53:33 +0000 |
parents | 31d8638760b1 |
children | 2ae732e2c65c |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/HYKFormation.java Fri Jul 15 15:36:59 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/HYKFormation.java Fri Jul 15 15:53:33 2011 +0000 @@ -28,6 +28,9 @@ private HYKEntry entry; private BigDecimal top; private BigDecimal bottom; + private BigDecimal distanceVL; + private BigDecimal distanceHF; + private BigDecimal distanceVR; private List<HYKFlowZone> zones; @@ -38,12 +41,18 @@ Integer formationNum, HYKEntry entry, BigDecimal top, - BigDecimal bottom + BigDecimal bottom, + BigDecimal distanceVL, + BigDecimal distanceHF, + BigDecimal distanceVR ) { this.formationNum = formationNum; this.entry = entry; this.top = top; this.bottom = bottom; + this.distanceVL = distanceVL; + this.distanceHF = distanceHF; + this.distanceVR = distanceVR; } @Id @@ -100,6 +109,34 @@ this.bottom = bottom; } + @Column(name = "distance_vl") + public BigDecimal getDistanceVL() { + return distanceVL; + } + + public void setDistanceVL(BigDecimal distanceVL) { + this.distanceVL = distanceVL; + } + + @Column(name = "distance_hf") + public BigDecimal getDistanceHF() { + return distanceHF; + } + + public void setDistanceHF(BigDecimal distanceHF) { + this.distanceHF = distanceHF; + } + + @Column(name = "distance_vr") + public BigDecimal getDistanceVR() { + return distanceVR; + } + + public void setDistanceVR(BigDecimal distanceVR) { + this.distanceVR = distanceVR; + } + + @OneToMany @OrderBy("a") @JoinColumn(name="formation_id")