comparison flys-backend/src/main/java/de/intevation/flys/model/MeasurementStation.java @ 5471:de3c77d35fef

Renamed comment to description in measurement station.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 27 Mar 2013 15:57:44 +0100
parents 1b676aefaf3a
children
comparison
equal deleted inserted replaced
5458:e667c127b600 5471:de3c77d35fef
19 19
20 private String name; 20 private String name;
21 private String measurementType; 21 private String measurementType;
22 private String riverside; 22 private String riverside;
23 private String operator; 23 private String operator;
24 private String comment; 24 private String description;
25 25
26 private Double station; 26 private Double station;
27 private Range range; 27 private Range range;
28 28
29 private River river; 29 private River river;
37 } 37 }
38 38
39 public MeasurementStation(River river, String name, String measurementType, 39 public MeasurementStation(River river, String name, String measurementType,
40 String riverside, Double station, Range range, Gauge gauge, 40 String riverside, Double station, Range range, Gauge gauge,
41 String gaugeName, TimeInterval observationTimerange, String operator, 41 String gaugeName, TimeInterval observationTimerange, String operator,
42 String comment 42 String description
43 ) { 43 ) {
44 this.river = river; 44 this.river = river;
45 this.name = name; 45 this.name = name;
46 this.measurementType = measurementType; 46 this.measurementType = measurementType;
47 this.riverside = riverside; 47 this.riverside = riverside;
49 this.range = range; 49 this.range = range;
50 this.gauge = gauge; 50 this.gauge = gauge;
51 this.gaugeName = gaugeName; 51 this.gaugeName = gaugeName;
52 this.observationTimerange = observationTimerange; 52 this.observationTimerange = observationTimerange;
53 this.operator = operator; 53 this.operator = operator;
54 this.comment = comment; 54 this.description = description;
55 } 55 }
56 56
57 @Id 57 @Id
58 @SequenceGenerator(name = "SEQ_MEASUREMENT_STATION_ID_SEQ", sequenceName = "MEASUREMENT_STATION_ID_SEQ", allocationSize = 1) 58 @SequenceGenerator(name = "SEQ_MEASUREMENT_STATION_ID_SEQ", sequenceName = "MEASUREMENT_STATION_ID_SEQ", allocationSize = 1)
59 @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_MEASUREMENT_STATION_ID_SEQ") 59 @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_MEASUREMENT_STATION_ID_SEQ")
158 158
159 public void setOperator(String operator) { 159 public void setOperator(String operator) {
160 this.operator = operator; 160 this.operator = operator;
161 } 161 }
162 162
163 @Column(name = "comment") 163 @Column(name = "description")
164 public String getComment() { 164 public String getDescription() {
165 return comment; 165 return description;
166 } 166 }
167 167
168 public void setComment(String comment) { 168 public void setDescription(String description) {
169 this.comment = comment; 169 this.description = description;
170 } 170 }
171 } 171 }

http://dive4elements.wald.intevation.org