Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1213:cc88db4a5b34 | 1214:32ee9babe42c |
---|---|
26 private Integer id; | 26 private Integer id; |
27 private Integer formationNum; | 27 private Integer formationNum; |
28 private HYKEntry entry; | 28 private HYKEntry entry; |
29 private BigDecimal top; | 29 private BigDecimal top; |
30 private BigDecimal bottom; | 30 private BigDecimal bottom; |
31 private BigDecimal distanceVL; | |
32 private BigDecimal distanceHF; | |
33 private BigDecimal distanceVR; | |
31 | 34 |
32 private List<HYKFlowZone> zones; | 35 private List<HYKFlowZone> zones; |
33 | 36 |
34 public HYKFormation() { | 37 public HYKFormation() { |
35 } | 38 } |
36 | 39 |
37 public HYKFormation( | 40 public HYKFormation( |
38 Integer formationNum, | 41 Integer formationNum, |
39 HYKEntry entry, | 42 HYKEntry entry, |
40 BigDecimal top, | 43 BigDecimal top, |
41 BigDecimal bottom | 44 BigDecimal bottom, |
45 BigDecimal distanceVL, | |
46 BigDecimal distanceHF, | |
47 BigDecimal distanceVR | |
42 ) { | 48 ) { |
43 this.formationNum = formationNum; | 49 this.formationNum = formationNum; |
44 this.entry = entry; | 50 this.entry = entry; |
45 this.top = top; | 51 this.top = top; |
46 this.bottom = bottom; | 52 this.bottom = bottom; |
53 this.distanceVL = distanceVL; | |
54 this.distanceHF = distanceHF; | |
55 this.distanceVR = distanceVR; | |
47 } | 56 } |
48 | 57 |
49 @Id | 58 @Id |
50 @SequenceGenerator( | 59 @SequenceGenerator( |
51 name = "SEQUENCE_HYK_FORMATIONS_ID_SEQ", | 60 name = "SEQUENCE_HYK_FORMATIONS_ID_SEQ", |
98 | 107 |
99 public void setBottom(BigDecimal bottom) { | 108 public void setBottom(BigDecimal bottom) { |
100 this.bottom = bottom; | 109 this.bottom = bottom; |
101 } | 110 } |
102 | 111 |
112 @Column(name = "distance_vl") | |
113 public BigDecimal getDistanceVL() { | |
114 return distanceVL; | |
115 } | |
116 | |
117 public void setDistanceVL(BigDecimal distanceVL) { | |
118 this.distanceVL = distanceVL; | |
119 } | |
120 | |
121 @Column(name = "distance_hf") | |
122 public BigDecimal getDistanceHF() { | |
123 return distanceHF; | |
124 } | |
125 | |
126 public void setDistanceHF(BigDecimal distanceHF) { | |
127 this.distanceHF = distanceHF; | |
128 } | |
129 | |
130 @Column(name = "distance_vr") | |
131 public BigDecimal getDistanceVR() { | |
132 return distanceVR; | |
133 } | |
134 | |
135 public void setDistanceVR(BigDecimal distanceVR) { | |
136 this.distanceVR = distanceVR; | |
137 } | |
138 | |
139 | |
103 @OneToMany | 140 @OneToMany |
104 @OrderBy("a") | 141 @OrderBy("a") |
105 @JoinColumn(name="formation_id") | 142 @JoinColumn(name="formation_id") |
106 public List<HYKFlowZone> getZones() { | 143 public List<HYKFlowZone> getZones() { |
107 return zones; | 144 return zones; |