[Lada-commits] [PATCH 3 of 4] Updated messwert model

Wald Commits scm-commit at wald.intevation.org
Wed Feb 18 11:46:30 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424256422 -3600
# Node ID eab3718f14828199d4f7d299c7989219cb1946f9
# Parent  9d5397aa2dcedb4d5d74273627e566f38ad91688
Updated messwert model.

diff -r 9d5397aa2dce -r eab3718f1482 src/main/java/de/intevation/lada/model/Messwert.java
--- a/src/main/java/de/intevation/lada/model/Messwert.java	Wed Feb 18 11:46:47 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/Messwert.java	Wed Feb 18 11:47:02 2015 +0100
@@ -11,6 +11,8 @@
 import java.sql.Timestamp;
 
 import javax.persistence.Column;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.MappedSuperclass;
 import javax.persistence.Table;
@@ -25,6 +27,8 @@
     private static final long serialVersionUID = 1L;
 
     @Id
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    @Column(name="id", unique=true, nullable=false)
     private Integer id;
 
     private Boolean grenzwertueberschreitung;
@@ -35,7 +39,7 @@
     @Column(name="meh_id")
     private Integer mehId;
 
-    private float messfehler;
+    private Float messfehler;
 
     @Column(name="messgroesse_id")
     private Integer messgroesseId;
@@ -43,13 +47,13 @@
     @Column(name="messungs_id")
     private Integer messungsId;
 
-    private float messwert;
+    private Float messwert;
 
     @Column(name="messwert_nwg")
     private String messwertNwg;
 
     @Column(name="nwg_zu_messwert")
-    private float nwgZuMesswert;
+    private Float nwgZuMesswert;
 
     public Messwert() {
     }
@@ -86,11 +90,11 @@
         this.mehId = mehId;
     }
 
-    public float getMessfehler() {
+    public Float getMessfehler() {
         return this.messfehler;
     }
 
-    public void setMessfehler(float messfehler) {
+    public void setMessfehler(Float messfehler) {
         this.messfehler = messfehler;
     }
 
@@ -110,11 +114,11 @@
         this.messungsId = messungsId;
     }
 
-    public float getMesswert() {
+    public Float getMesswert() {
         return this.messwert;
     }
 
-    public void setMesswert(float messwert) {
+    public void setMesswert(Float messwert) {
         this.messwert = messwert;
     }
 
@@ -126,11 +130,11 @@
         this.messwertNwg = messwertNwg;
     }
 
-    public float getNwgZuMesswert() {
+    public Float getNwgZuMesswert() {
         return this.nwgZuMesswert;
     }
 
-    public void setNwgZuMesswert(float nwgZuMesswert) {
+    public void setNwgZuMesswert(Float nwgZuMesswert) {
         this.nwgZuMesswert = nwgZuMesswert;
     }
 


More information about the Lada-commits mailing list