changeset 592:519fcf6e738c

Added new column 'tree_modified' to entity classes.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 25 Mar 2015 16:16:33 +0100
parents 7a97e4b1cc18
children ec13e741ec71
files src/main/java/de/intevation/lada/model/land/LMessung.java src/main/java/de/intevation/lada/model/land/LMesswert.java src/main/java/de/intevation/lada/model/land/LOrt.java src/main/java/de/intevation/lada/model/land/LProbe.java src/main/java/de/intevation/lada/model/land/LStatus.java src/main/java/de/intevation/lada/model/land/LZusatzWert.java
diffstat 6 files changed, 78 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }
--- 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;
+    }
 }
--- 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;
+    }
 }
--- 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) {
--- 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;
+    }
 }
--- 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;
+    }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)