diff 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
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java	Sat Jan 05 14:52:55 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java	Sat Jan 05 15:05:51 2013 +0100
@@ -24,6 +24,7 @@
     private Integer      id;
     private Gauge        gauge;
     private String       description;
+    private String       bfgId;
     private Integer      kind;
     private TimeInterval timeInterval;
 
@@ -34,17 +35,19 @@
     }
 
     public DischargeTable(Gauge gauge) {
-        this(gauge, null, 0, null);
+        this(gauge, null, null, 0, null);
     }
 
     public DischargeTable(
         Gauge        gauge,
         String       description,
+        String       bfgId,
         Integer      kind,
         TimeInterval timeInterval
     ) {
         this.gauge        = gauge;
         this.description  = description;
+        this.bfgId        = bfgId;
         this.kind         = kind;
         this.timeInterval = timeInterval;
     }
@@ -85,6 +88,15 @@
         this.description = description;
     }
 
+    @Column(name = "bfg_id")
+    public String getBfgId() {
+        return bfgId;
+    }
+
+    public void setBfgId(String bfgId) {
+        this.bfgId = bfgId;
+    }
+
     @Column(name = "kind")
     public Integer getKind() {
         return kind;

http://dive4elements.wald.intevation.org