comparison flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java @ 493:b35c5dc0f8b7

Importer: Make import of historical discharge tables work. flys-backend/trunk@1842 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 06 May 2011 10:27:32 +0000
parents c8c09e31cdb8
children 67f362883fe4
comparison
equal deleted inserted replaced
492:14de9246b356 493:b35c5dc0f8b7
20 public class DischargeTable 20 public class DischargeTable
21 implements Serializable 21 implements Serializable
22 { 22 {
23 private Integer id; 23 private Integer id;
24 private Gauge gauge; 24 private Gauge gauge;
25 private String description;
25 private Integer kind; 26 private Integer kind;
26 private TimeInterval timeInterval; 27 private TimeInterval timeInterval;
27 28
28 private List<DischargeTableValue> dischargeTableValues; 29 private List<DischargeTableValue> dischargeTableValues;
29 30
30 public DischargeTable() { 31 public DischargeTable() {
31 kind = 0; 32 kind = 0;
32 } 33 }
33 34
34 public DischargeTable(Gauge gauge) { 35 public DischargeTable(Gauge gauge) {
35 this(gauge, 0); 36 this(gauge, null, 0, null);
36 } 37 }
37 38
38 public DischargeTable(Gauge gauge, Integer kind) { 39 public DischargeTable(
39 this.gauge = gauge; 40 Gauge gauge,
40 this.kind = kind; 41 String description,
42 Integer kind,
43 TimeInterval timeInterval
44 ) {
45 this.gauge = gauge;
46 this.description = description;
47 this.kind = kind;
48 this.timeInterval = timeInterval;
41 } 49 }
42 50
43 @Id 51 @Id
44 @SequenceGenerator( 52 @SequenceGenerator(
45 name = "SEQUENCE_DISCHARGE_TABLES_ID_SEQ", 53 name = "SEQUENCE_DISCHARGE_TABLES_ID_SEQ",
63 return gauge; 71 return gauge;
64 } 72 }
65 73
66 public void setGauge(Gauge gauge) { 74 public void setGauge(Gauge gauge) {
67 this.gauge = gauge; 75 this.gauge = gauge;
76 }
77
78 @Column(name = "description")
79 public String getDescription() {
80 return description;
81 }
82
83 public void setDescription(String description) {
84 this.description = description;
68 } 85 }
69 86
70 @Column(name = "kind") 87 @Column(name = "kind")
71 public Integer getKind() { 88 public Integer getKind() {
72 return kind; 89 return kind;

http://dive4elements.wald.intevation.org