[Lada-commits] [PATCH 4 of 5] Updated kommentarp model
Wald Commits
scm-commit at wald.intevation.org
Tue Feb 17 13:43:53 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424177026 -3600
# Node ID 72e63977aa60caeeb96e80ef07f404988b400930
# Parent a52595771d85f2070eec3bbc033502d6ca1b202b
Updated kommentarp model.
diff -r a52595771d85 -r 72e63977aa60 src/main/java/de/intevation/lada/model/KommentarP.java
--- 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;
diff -r a52595771d85 -r 72e63977aa60 src/main/java/de/intevation/lada/model/land/LKommentarP.java
--- 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;
/**
More information about the Lada-commits
mailing list