[Lada-commits] [PATCH 3 of 4] Updated messung kommentar model

Wald Commits scm-commit at wald.intevation.org
Wed Feb 18 09:35:58 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424248591 -3600
# Node ID 7a3d669fa1d6e200cd9c00bc24733d967a414e8a
# Parent  934ad215f6d250751f2fbb070c0b0a84d6535841
Updated messung kommentar model.

diff -r 934ad215f6d2 -r 7a3d669fa1d6 src/main/java/de/intevation/lada/model/KommentarM.java
--- a/src/main/java/de/intevation/lada/model/KommentarM.java	Wed Feb 18 09:36:00 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/KommentarM.java	Wed Feb 18 09:36:31 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,13 +27,15 @@
     private static final long serialVersionUID = 1L;
 
     @Column(name="messungs_id")
-    private Integer messung;
+    private Integer messungId;
 
     private Timestamp datum;
 
     private String erzeuger;
 
     @Id
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    @Column(name="id", unique=true, nullable=false)
     private Integer id;
 
     private String text;
@@ -71,11 +75,11 @@
         this.text = text;
     }
 
-    public Integer getMessung() {
-        return this.messung;
+    public Integer getMessungId() {
+        return this.messungId;
     }
 
-    public void setMessung(Integer messung) {
-        this.messung = messung;
+    public void setMessungId(Integer messungId) {
+        this.messungId = messungId;
     }
 }


More information about the Lada-commits mailing list