changeset 477:7a3d669fa1d6

Updated messung kommentar model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Feb 2015 09:36:31 +0100
parents 934ad215f6d2
children 808983286514
files src/main/java/de/intevation/lada/model/KommentarM.java
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)