diff src/main/java/de/intevation/lada/model/land/OrtszuordnungMp.java @ 1288:d73cfd90ffc0

Fixed authorization for messprogramm ortszuordnung.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Feb 2017 12:24:34 +0100
parents a1323ef2c330
children 1bf808b67403
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/land/OrtszuordnungMp.java	Wed Feb 08 12:01:07 2017 +0100
+++ b/src/main/java/de/intevation/lada/model/land/OrtszuordnungMp.java	Wed Feb 08 12:24:34 2017 +0100
@@ -16,6 +16,7 @@
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 
 
 /**
@@ -45,9 +46,15 @@
 
     private String ortszusatztext;
 
-    @Column(name="tree_modified")
+    @Column(name="tree_modified", insertable=false, updatable=false)
     private Timestamp treeModified;
 
+    @Transient
+    private boolean owner;
+
+    @Transient
+    private boolean readonly;
+
     public OrtszuordnungMp() {
     }
 
@@ -107,4 +114,31 @@
         this.treeModified = treeModified;
     }
 
+    /**
+     * @return the owner
+     */
+    public boolean isOwner() {
+        return owner;
+    }
+
+    /**
+     * @param owner the owner to set
+     */
+    public void setOwner(boolean owner) {
+        this.owner = owner;
+    }
+
+    /**
+     * @return the readonly
+     */
+    public boolean isReadonly() {
+        return readonly;
+    }
+
+    /**
+     * @param readonly the readonly to set
+     */
+    public void setReadonly(boolean readonly) {
+        this.readonly = readonly;
+    }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)