[Lada-commits] [PATCH 2 of 8] Updated probenzusatz model

Wald Commits scm-commit at wald.intevation.org
Thu Feb 19 14:20:52 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424351581 -3600
# Node ID 12f7cc76a969eb9665e091e4511a9d82711e9f17
# Parent  6774e6aa350dd46699292f2079afe005605b47f8
Updated probenzusatz model.

diff -r 6774e6aa350d -r 12f7cc76a969 src/main/java/de/intevation/lada/model/stamm/ProbenZusatz.java
--- a/src/main/java/de/intevation/lada/model/stamm/ProbenZusatz.java	Thu Feb 19 14:12:34 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/stamm/ProbenZusatz.java	Thu Feb 19 14:13:01 2015 +0100
@@ -12,8 +12,6 @@
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
 import javax.persistence.Table;
 
 
@@ -35,9 +33,8 @@
 
     private String zusatzwert;
 
-    @ManyToOne
-    @JoinColumn(name="meh_id")
-    private MessEinheit messEinheit;
+    @Column(name="meh_id")
+    private Integer mehId;
 
     public ProbenZusatz() {
     }
@@ -74,12 +71,12 @@
         this.zusatzwert = zusatzwert;
     }
 
-    public MessEinheit getMessEinheit() {
-        return this.messEinheit;
+    public Integer getMehId() {
+        return this.mehId;
     }
 
-    public void setMessEinheit(MessEinheit messEinheit) {
-        this.messEinheit = messEinheit;
+    public void setMehId(Integer mehId) {
+        this.mehId = mehId;
     }
 
 }


More information about the Lada-commits mailing list