[Lada-commits] [PATCH 1 of 2] Updated messprogramm model

Wald Commits scm-commit at wald.intevation.org
Thu Apr 30 17:27:20 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1430407660 -7200
# Node ID 7088d3c1da29c91a5a7e162510eeb547d1e9991a
# Parent  47dd9aded7bded585965dbe4c043cf9745900db6
Updated messprogramm model.

diff -r 47dd9aded7bd -r 7088d3c1da29 src/main/java/de/intevation/lada/model/land/Messprogramm.java
--- a/src/main/java/de/intevation/lada/model/land/Messprogramm.java	Thu Apr 30 16:30:13 2015 +0200
+++ b/src/main/java/de/intevation/lada/model/land/Messprogramm.java	Thu Apr 30 17:27:40 2015 +0200
@@ -12,6 +12,8 @@
 
 import javax.persistence.Column;
 import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
 import javax.persistence.Id;
 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;
 
     @Column(name="ba_id")


More information about the Lada-commits mailing list