changeset 465:72e63977aa60

Updated kommentarp model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 17 Feb 2015 13:43:46 +0100
parents a52595771d85
children c4a6145d16ea
files src/main/java/de/intevation/lada/model/KommentarP.java src/main/java/de/intevation/lada/model/land/LKommentarP.java
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/KommentarP.java	Tue Feb 17 13:43:21 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/KommentarP.java	Tue Feb 17 13:43:46 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;
@@ -29,6 +31,8 @@
     private String erzeuger;
 
     @Id
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    @Column(name="id", unique=true, nullable=false)
     private Integer id;
 
     private String text;
--- a/src/main/java/de/intevation/lada/model/land/LKommentarP.java	Tue Feb 17 13:43:21 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LKommentarP.java	Tue Feb 17 13:43:46 2015 +0100
@@ -10,7 +10,7 @@
 import javax.persistence.Entity;
 import javax.persistence.Table;
 
-import de.intevation.lada.model.bund.KommentarP;
+import de.intevation.lada.model.KommentarP;
 
 
 /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)