[Lada-commits] [PATCH 1 of 2] Let the database control the tree_modified column (disable insert and update)

Wald Commits scm-commit at wald.intevation.org
Tue Nov 1 15:02:01 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1478008863 -3600
# Node ID f84b4fb82061a01b9d050647383facb2c150cd69
# Parent  48c0132dbc85c9af7d6f429fa29dc170b11e2d21
Let the database control the tree_modified column (disable insert and update)

diff -r 48c0132dbc85 -r f84b4fb82061 src/main/java/de/intevation/lada/model/land/Messung.java
--- a/src/main/java/de/intevation/lada/model/land/Messung.java	Tue Nov 01 12:47:25 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/land/Messung.java	Tue Nov 01 15:01:03 2016 +0100
@@ -60,7 +60,7 @@
 
     private Integer status;
 
-    @Column(name="tree_modified")
+    @Column(name="tree_modified", insertable=false, updatable=false)
     private Timestamp treeModified;
 
     @Transient
diff -r 48c0132dbc85 -r f84b4fb82061 src/main/java/de/intevation/lada/model/land/Messwert.java
--- a/src/main/java/de/intevation/lada/model/land/Messwert.java	Tue Nov 01 12:47:25 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/land/Messwert.java	Tue Nov 01 15:01:03 2016 +0100
@@ -49,7 +49,7 @@
     @Column(name="nwg_zu_messwert")
     private Double nwgZuMesswert;
 
-    @Column(name="tree_modified")
+    @Column(name="tree_modified", insertable=false, updatable=false)
     private Timestamp treeModified;
 
     @OneToOne
diff -r 48c0132dbc85 -r f84b4fb82061 src/main/java/de/intevation/lada/model/land/Ortszuordnung.java
--- a/src/main/java/de/intevation/lada/model/land/Ortszuordnung.java	Tue Nov 01 12:47:25 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/land/Ortszuordnung.java	Tue Nov 01 15:01:03 2016 +0100
@@ -39,7 +39,7 @@
     @Column(name="probe_id")
     private Integer probeId;
 
-    @Column(name="tree_modified")
+    @Column(name="tree_modified", insertable=false, updatable=false)
     private Timestamp treeModified;
 
     @OneToOne
diff -r 48c0132dbc85 -r f84b4fb82061 src/main/java/de/intevation/lada/model/land/Probe.java
--- a/src/main/java/de/intevation/lada/model/land/Probe.java	Tue Nov 01 12:47:25 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/land/Probe.java	Tue Nov 01 15:01:03 2016 +0100
@@ -83,7 +83,7 @@
 
     private Boolean test;
 
-    @Column(name="tree_modified")
+    @Column(name="tree_modified", insertable=false, updatable=false)
     private Timestamp treeModified;
 
     @Column(name="umw_id")
diff -r 48c0132dbc85 -r f84b4fb82061 src/main/java/de/intevation/lada/model/land/ZusatzWert.java
--- a/src/main/java/de/intevation/lada/model/land/ZusatzWert.java	Tue Nov 01 12:47:25 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/land/ZusatzWert.java	Tue Nov 01 15:01:03 2016 +0100
@@ -44,7 +44,7 @@
     @Column(name="pzs_id")
     private String pzsId;
 
-    @Column(name="tree_modified")
+    @Column(name="tree_modified", insertable=false, updatable=false)
     private Timestamp treeModified;
 
     @OneToOne


More information about the Lada-commits mailing list