[Lada-commits] [PATCH] Added new table for messprogramm mappings

Wald Commits scm-commit at wald.intevation.org
Tue Sep 20 10:13:47 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1474359223 -7200
# Branch schema-update
# Node ID 9615be7b162672a6bfae8918a13172cd95aca74b
# Parent  28d2d5be7e03e3acfc885bc3bb764c1e50dcc83a
Added new table for messprogramm mappings.

diff -r 28d2d5be7e03 -r 9615be7b1626 db_schema/stammdaten_data.sql
--- a/db_schema/stammdaten_data.sql	Mon Sep 19 12:14:46 2016 +0200
+++ b/db_schema/stammdaten_data.sql	Tue Sep 20 10:13:43 2016 +0200
@@ -37134,6 +37134,40 @@
 126	15	probeId	Probe_Id	100	f	0
 \.
 
+COPY messprogramm_transfer (messprogramm_s, messprogramm_c, ba_id, datenbasis_id) FROM stdin;
+'1'	'Routinemessprogramm',	 1	2
+'2'	'Intensiv- bzw. sektororientiertes Intensivmessprogramm'	2	2
+'4'	'REI, bestimmungsgemäßer Betrieb'	1	4
+'5'	'REI, Störfall/Unfall'	2	4
+'6'	'REI, Übung zum Störfall'	1	4
+'A'	'Landesmessprogramm -A-'	1	7
+'B'	'Landesmessprogramm -B-'	1	7
+'C'	'Landesmessprogramm -C-'	1	7
+'D'	'Landesmessprogramm -D-'	1	7
+'E'	'Landesmessprogramm -E-'	1	7
+'F'	'Landesmessprogramm -F-'	1	7
+'G'	'Landesmessprogramm -G-'	1	7
+'H'	'Landesmessprogramm -H-'	1	7
+'I'	'Landesmessprogramm -I-'	1	7
+'J'	'Landesmessprogramm -J-'	1	7
+'K'	'Landesmessprogramm -K-'	1	7
+'L'	'Landesmessprogramm -L-'	1	7
+'M'	'Landesmessprogramm -M-'	1	7
+'N'	'Landesmessprogramm -N-'	1	7
+'O'	'Landesmessprogramm -O-'	1	7
+'P'	'Landesmessprogramm -P-'	1	7
+'Q'	'Landesmessprogramm -Q-'	1	7
+'R'	'Landesmessprogramm -R-'	1	7
+'S'	'Landesmessprogramm -S-'	1	7
+'T'	'Landesmessprogramm -T-'	1	7
+'U'	'Landesmessprogramm -U-'	1	7
+'V'	'Landesmessprogramm -V-'	1	7
+'W'	'Landesmessprogramm -W-'	1	7
+'X'	'Landesmessprogramm -X-'	1	7
+'Y'	'Landesmessprogramm -Y-'	1	7
+'Z'	'Landesmessprogramm -Z-'	1	7
+
+
 --
 -- TOC entry 4746 (class 0 OID 0)
 -- Dependencies: 284
diff -r 28d2d5be7e03 -r 9615be7b1626 db_schema/stammdaten_schema.sql
--- a/db_schema/stammdaten_schema.sql	Mon Sep 19 12:14:46 2016 +0200
+++ b/db_schema/stammdaten_schema.sql	Tue Sep 20 10:13:43 2016 +0200
@@ -639,6 +639,18 @@
 );
 -- Status workflow
 
+-- Mappings for import
+
+CREATE TABLE messprogramm_transfer (
+    id serial PRIMARY KEY,
+    messprogramm_s character varying(1) NOT NULL,
+    messprogramm_c character varying(100) NOT NULL,
+    ba_id integer NOT NULL REFERENCES betriebsart,
+    datenbasis_id integer NOT NULL REFERENCES datenbasis,
+    UNIQUE (messprogramm_s)
+);
+
+-- Mappings for import
 
 CREATE INDEX de_vg_geom_gist ON de_vg USING gist (geom);
 
diff -r 28d2d5be7e03 -r 9615be7b1626 src/main/java/de/intevation/lada/model/stammdaten/MessprogrammTransfer.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/model/stammdaten/MessprogrammTransfer.java	Tue Sep 20 10:13:43 2016 +0200
@@ -0,0 +1,86 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3) 
+ * and comes with ABSOLUTELY NO WARRANTY! Check out 
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+package de.intevation.lada.model.stammdaten;
+
+import java.io.Serializable;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+
+
+/**
+ * The persistent class for the messprogramm_transfer database table.
+ * 
+ */
+ at Entity
+public class MessprogrammTransfer implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    private Integer id;
+
+    @Column(name="ba_id")
+    private Integer baId;
+
+    @Column(name="datenbasis_id")
+    private Integer datenbasisId;
+
+    @Column(name="messprogramm_c")
+    private String messprogrammC;
+
+    @Column(name="messprogramm_s")
+    private String messprogrammS;
+
+    public MessprogrammTransfer() {
+    }
+
+    public Integer getId() {
+        return this.id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getBaId() {
+        return this.baId;
+    }
+
+    public void setBaId(Integer baId) {
+        this.baId = baId;
+    }
+
+    public Integer getDatenbasisId() {
+        return this.datenbasisId;
+    }
+
+    public void setDatenbasisId(Integer datenbasisId) {
+        this.datenbasisId = datenbasisId;
+    }
+
+    public String getMessprogrammC() {
+        return this.messprogrammC;
+    }
+
+    public void setMessprogrammC(String messprogrammC) {
+        this.messprogrammC = messprogrammC;
+    }
+
+    public String getMessprogrammS() {
+        return this.messprogrammS;
+    }
+
+    public void setMessprogrammS(String messprogrammS) {
+        this.messprogrammS = messprogrammS;
+    }
+
+}


More information about the Lada-commits mailing list