changeset 645:7088d3c1da29

Updated messprogramm model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 30 Apr 2015 17:27:40 +0200
parents 47dd9aded7bd
children ac7f69201d4a
files src/main/java/de/intevation/lada/model/land/Messprogramm.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)