[Lada-commits] [PATCH 4 of 8] Added new column 'tree_modified' to entity classes

Wald Commits scm-commit at wald.intevation.org
Wed Mar 25 16:26:26 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1427296593 -3600
# Node ID 519fcf6e738cd3ee2a0cd4dcb1392e2226d65e77
# Parent  7a97e4b1cc18e422ff33d4fba7b8eb3864d68e3e
Added new column 'tree_modified' to entity classes.

diff -r 7a97e4b1cc18 -r 519fcf6e738c src/main/java/de/intevation/lada/model/land/LMessung.java
--- a/src/main/java/de/intevation/lada/model/land/LMessung.java	Wed Mar 25 16:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LMessung.java	Wed Mar 25 16:16:33 2015 +0100
@@ -7,6 +7,8 @@
  */
 package de.intevation.lada.model.land;
 
+import java.sql.Timestamp;
+
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.OneToOne;
@@ -33,6 +35,9 @@
 
     private Boolean geplant;
 
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
     public LMessung() {
     }
 
@@ -44,6 +49,14 @@
         this.geplant = geplant;
     }
 
+    public Timestamp getTreeModified() {
+        return this.treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
+
     public String getNebenprobenNr() {
         return nebenprobenNr;
     }
diff -r 7a97e4b1cc18 -r 519fcf6e738c src/main/java/de/intevation/lada/model/land/LMesswert.java
--- a/src/main/java/de/intevation/lada/model/land/LMesswert.java	Wed Mar 25 16:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LMesswert.java	Wed Mar 25 16:16:33 2015 +0100
@@ -7,6 +7,9 @@
  */
 package de.intevation.lada.model.land;
 
+import java.sql.Timestamp;
+
+import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Table;
 
@@ -19,4 +22,14 @@
 public class LMesswert extends de.intevation.lada.model.Messwert {
     private static final long serialVersionUID = 1L;
 
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
+    public Timestamp getTreeModified() {
+        return treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
 }
diff -r 7a97e4b1cc18 -r 519fcf6e738c src/main/java/de/intevation/lada/model/land/LOrt.java
--- a/src/main/java/de/intevation/lada/model/land/LOrt.java	Wed Mar 25 16:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LOrt.java	Wed Mar 25 16:16:33 2015 +0100
@@ -7,6 +7,9 @@
  */
 package de.intevation.lada.model.land;
 
+import java.sql.Timestamp;
+
+import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Table;
 
@@ -19,4 +22,14 @@
 public class LOrt extends de.intevation.lada.model.Ort {
     private static final long serialVersionUID = 1L;
 
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
+    public Timestamp getTreeModified() {
+        return treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
 }
diff -r 7a97e4b1cc18 -r 519fcf6e738c src/main/java/de/intevation/lada/model/land/LProbe.java
--- a/src/main/java/de/intevation/lada/model/land/LProbe.java	Wed Mar 25 16:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LProbe.java	Wed Mar 25 16:16:33 2015 +0100
@@ -55,6 +55,9 @@
     @Column(name="solldatum_ende")
     private Timestamp solldatumEnde;
 
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
     @Transient
     private boolean readonly;
 
@@ -149,15 +152,23 @@
     public void setProbeIdAlt(String probeIdAlt) {}
 
     public boolean getIsOwner() {
-        return this.owner; //TODO set a valid value in authorization process.
+        return this.owner;
     }
 
     public void setIsOwner(boolean value) {
         this.owner = value;
     }
 
+    public Timestamp getTreeModified() {
+        return this.treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
+
     public boolean getReadonly() {
-        return this.readonly; //TODO set a valid value in authorization process.
+        return this.readonly;
     }
 
     public void setReadonly(boolean value) {
diff -r 7a97e4b1cc18 -r 519fcf6e738c src/main/java/de/intevation/lada/model/land/LStatus.java
--- a/src/main/java/de/intevation/lada/model/land/LStatus.java	Wed Mar 25 16:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LStatus.java	Wed Mar 25 16:16:33 2015 +0100
@@ -7,6 +7,9 @@
  */
 package de.intevation.lada.model.land;
 
+import java.sql.Timestamp;
+
+import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Table;
 
@@ -19,4 +22,14 @@
 public class LStatus extends de.intevation.lada.model.Status {
     private static final long serialVersionUID = 1L;
 
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
+    public Timestamp getTreeModified() {
+        return treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
 }
diff -r 7a97e4b1cc18 -r 519fcf6e738c src/main/java/de/intevation/lada/model/land/LZusatzWert.java
--- a/src/main/java/de/intevation/lada/model/land/LZusatzWert.java	Wed Mar 25 16:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LZusatzWert.java	Wed Mar 25 16:16:33 2015 +0100
@@ -7,6 +7,9 @@
  */
 package de.intevation.lada.model.land;
 
+import java.sql.Timestamp;
+
+import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Table;
 
@@ -19,4 +22,14 @@
 public class LZusatzWert extends de.intevation.lada.model.ZusatzWert {
     private static final long serialVersionUID = 1L;
 
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
+    public Timestamp getTreeModified() {
+        return treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
 }


More information about the Lada-commits mailing list