Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
2370:7d378970d764 | 2371:fe89d6cf55fb |
---|---|
34 private String name; | 34 private String name; |
35 private River river; | 35 private River river; |
36 private BigDecimal station; | 36 private BigDecimal station; |
37 private BigDecimal aeo; | 37 private BigDecimal aeo; |
38 private BigDecimal datum; | 38 private BigDecimal datum; |
39 private Long officialNumber; | |
39 private Range range; | 40 private Range range; |
40 | 41 |
41 private List<DischargeTable> dischargeTables; | 42 private List<DischargeTable> dischargeTables; |
42 | 43 |
43 /** MainValues at this Gauge. */ | 44 /** MainValues at this Gauge. */ |
50 String name, | 51 String name, |
51 River river, | 52 River river, |
52 BigDecimal station, | 53 BigDecimal station, |
53 BigDecimal aeo, | 54 BigDecimal aeo, |
54 BigDecimal datum, | 55 BigDecimal datum, |
56 Long officialNumber, | |
55 Range range | 57 Range range |
56 ) { | 58 ) { |
57 this.name = name; | 59 this.name = name; |
58 this.river = river; | 60 this.river = river; |
59 this.station = station; | 61 this.station = station; |
60 this.aeo = aeo; | 62 this.aeo = aeo; |
61 this.datum = datum; | 63 this.datum = datum; |
62 this.range = range; | 64 this.officialNumber = officialNumber; |
65 this.range = range; | |
63 } | 66 } |
64 | 67 |
65 @Id | 68 @Id |
66 @SequenceGenerator( | 69 @SequenceGenerator( |
67 name = "SEQUENCE_GAUGES_ID_SEQ", | 70 name = "SEQUENCE_GAUGES_ID_SEQ", |
123 | 126 |
124 public void setDatum(BigDecimal datum) { | 127 public void setDatum(BigDecimal datum) { |
125 this.datum = datum; | 128 this.datum = datum; |
126 } | 129 } |
127 | 130 |
131 @Column(name = "official_number") | |
132 public Long getOfficialNumber() { | |
133 return officialNumber; | |
134 } | |
135 | |
136 public void setOfficialNumber(Long officialNumber) { | |
137 this.officialNumber = officialNumber; | |
138 } | |
139 | |
128 @OneToOne | 140 @OneToOne |
129 @JoinColumn(name = "range_id" ) | 141 @JoinColumn(name = "range_id" ) |
130 public Range getRange() { | 142 public Range getRange() { |
131 return range; | 143 return range; |
132 } | 144 } |