Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java @ 4776:20b6ebf23916
!!! FLYS backend schema change !!! Add column bfg_id column to discharge_tables.
Alter existing databases with
alter table discharge_tables add column bfg_id varchar(50);
This column is now used to synchronize FLYS with the AFT database.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 05 Jan 2013 15:05:51 +0100 |
parents | 8138a90a674a |
children |
comparison
equal
deleted
inserted
replaced
4775:d9f1202cef78 | 4776:20b6ebf23916 |
---|---|
22 implements Serializable, Comparable<DischargeTable> | 22 implements Serializable, Comparable<DischargeTable> |
23 { | 23 { |
24 private Integer id; | 24 private Integer id; |
25 private Gauge gauge; | 25 private Gauge gauge; |
26 private String description; | 26 private String description; |
27 private String bfgId; | |
27 private Integer kind; | 28 private Integer kind; |
28 private TimeInterval timeInterval; | 29 private TimeInterval timeInterval; |
29 | 30 |
30 private List<DischargeTableValue> dischargeTableValues; | 31 private List<DischargeTableValue> dischargeTableValues; |
31 | 32 |
32 public DischargeTable() { | 33 public DischargeTable() { |
33 kind = 0; | 34 kind = 0; |
34 } | 35 } |
35 | 36 |
36 public DischargeTable(Gauge gauge) { | 37 public DischargeTable(Gauge gauge) { |
37 this(gauge, null, 0, null); | 38 this(gauge, null, null, 0, null); |
38 } | 39 } |
39 | 40 |
40 public DischargeTable( | 41 public DischargeTable( |
41 Gauge gauge, | 42 Gauge gauge, |
42 String description, | 43 String description, |
44 String bfgId, | |
43 Integer kind, | 45 Integer kind, |
44 TimeInterval timeInterval | 46 TimeInterval timeInterval |
45 ) { | 47 ) { |
46 this.gauge = gauge; | 48 this.gauge = gauge; |
47 this.description = description; | 49 this.description = description; |
50 this.bfgId = bfgId; | |
48 this.kind = kind; | 51 this.kind = kind; |
49 this.timeInterval = timeInterval; | 52 this.timeInterval = timeInterval; |
50 } | 53 } |
51 | 54 |
52 @Id | 55 @Id |
81 return description; | 84 return description; |
82 } | 85 } |
83 | 86 |
84 public void setDescription(String description) { | 87 public void setDescription(String description) { |
85 this.description = description; | 88 this.description = description; |
89 } | |
90 | |
91 @Column(name = "bfg_id") | |
92 public String getBfgId() { | |
93 return bfgId; | |
94 } | |
95 | |
96 public void setBfgId(String bfgId) { | |
97 this.bfgId = bfgId; | |
86 } | 98 } |
87 | 99 |
88 @Column(name = "kind") | 100 @Column(name = "kind") |
89 public Integer getKind() { | 101 public Integer getKind() { |
90 return kind; | 102 return kind; |