[Lada-commits] [PATCH 2 of 3] Added 'readonly' attribute to model

Wald Commits scm-commit at wald.intevation.org
Thu Jan 21 15:37:01 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1453386993 -3600
# Node ID 9f4be0bc724d48d1fba1a9fb3a0b4cbd9399671b
# Parent  bd51cb7b8d20db7165429cf6aa32121d6bb377ca
Added 'readonly' attribute to model.

diff -r bd51cb7b8d20 -r 9f4be0bc724d src/main/java/de/intevation/lada/model/stamm/DatensatzErzeuger.java
--- 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;
+    }
+
 }
diff -r bd51cb7b8d20 -r 9f4be0bc724d src/main/java/de/intevation/lada/model/stamm/MessprogrammKategorie.java
--- 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;
+    }
+
 }
diff -r bd51cb7b8d20 -r 9f4be0bc724d src/main/java/de/intevation/lada/model/stamm/Ort.java
--- 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;
+    }
+
 }
diff -r bd51cb7b8d20 -r 9f4be0bc724d src/main/java/de/intevation/lada/model/stamm/Probenehmer.java
--- 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;
+    }
+
 }


More information about the Lada-commits mailing list