changeset 842:9f4be0bc724d

Added 'readonly' attribute to model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 21 Jan 2016 15:36:33 +0100
parents bd51cb7b8d20
children 670f58112734
files src/main/java/de/intevation/lada/model/stamm/DatensatzErzeuger.java src/main/java/de/intevation/lada/model/stamm/MessprogrammKategorie.java src/main/java/de/intevation/lada/model/stamm/Ort.java src/main/java/de/intevation/lada/model/stamm/Probenehmer.java
diffstat 4 files changed, 48 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/stamm/DatensatzErzeuger.java	Thu Jan 21 15:36:02 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/stamm/DatensatzErzeuger.java	Thu Jan 21 15:36:33 2016 +0100
@@ -9,6 +9,7 @@
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 
 
 /**
@@ -39,6 +40,9 @@
     @Column(name="netzbetreiber_id")
     private String netzbetreiberId;
 
+    @Transient
+    private boolean readonly;
+
     public DatensatzErzeuger() {
     }
 
@@ -90,4 +94,12 @@
         this.netzbetreiberId = netzbetreiberId;
     }
 
+    public boolean isReadonly() {
+        return readonly;
+    }
+
+    public void setReadonly(boolean readonly) {
+        this.readonly = readonly;
+    }
+
 }
--- a/src/main/java/de/intevation/lada/model/stamm/MessprogrammKategorie.java	Thu Jan 21 15:36:02 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/stamm/MessprogrammKategorie.java	Thu Jan 21 15:36:33 2016 +0100
@@ -9,6 +9,7 @@
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 
 
 /**
@@ -36,6 +37,9 @@
     @Column(name="netzbetreiber_id")
     private String netzbetreiberId;
 
+    @Transient
+    private boolean readonly;
+
     public MessprogrammKategorie() {
     }
 
@@ -79,4 +83,12 @@
         this.netzbetreiberId = netzbetreiberId;
     }
 
+    public boolean isReadonly() {
+        return readonly;
+    }
+
+    public void setReadonly(boolean readonly) {
+        this.readonly = readonly;
+    }
+
 }
--- a/src/main/java/de/intevation/lada/model/stamm/Ort.java	Thu Jan 21 15:36:02 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/stamm/Ort.java	Thu Jan 21 15:36:33 2016 +0100
@@ -9,6 +9,7 @@
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 
 
 /**
@@ -87,6 +88,9 @@
 
     private String zustaendigkeit;
 
+    @Transient
+    private boolean readonly;
+
     public Ort() {
     }
 
@@ -290,4 +294,12 @@
         this.zustaendigkeit = zustaendigkeit;
     }
 
+    public boolean isReadonly() {
+        return readonly;
+    }
+
+    public void setReadonly(boolean readonly) {
+        this.readonly = readonly;
+    }
+
 }
--- a/src/main/java/de/intevation/lada/model/stamm/Probenehmer.java	Thu Jan 21 15:36:02 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/stamm/Probenehmer.java	Thu Jan 21 15:36:33 2016 +0100
@@ -8,6 +8,7 @@
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
+import javax.persistence.Transient;
 
 
 /**
@@ -55,6 +56,9 @@
 
     private String typ;
 
+    @Transient
+    private boolean readonly;
+
     public Probenehmer() {
     }
 
@@ -178,4 +182,12 @@
         this.typ = typ;
     }
 
+    public boolean isReadonly() {
+        return readonly;
+    }
+
+    public void setReadonly(boolean readonly) {
+        this.readonly = readonly;
+    }
+
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)