[Lada-commits] [PATCH 3 of 7] Added Annotation to set the id to generated value
Wald Commits
scm-commit at wald.intevation.org
Mon Sep 5 10:20:04 CEST 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1472817774 -7200
# Branch schema-update
# Node ID 7339dd0f8a670d0564426631882e8b31f25efa5a
# Parent 6f9983f6824863ebe1a47a139fff1da04c2f4e59
Added Annotation to set the id to generated value.
diff -r 6f9983f68248 -r 7339dd0f8a67 src/main/java/de/intevation/lada/model/stammdaten/DatensatzErzeuger.java
--- a/src/main/java/de/intevation/lada/model/stammdaten/DatensatzErzeuger.java Fri Sep 02 14:02:03 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/stammdaten/DatensatzErzeuger.java Fri Sep 02 14:02:54 2016 +0200
@@ -5,6 +5,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;
import javax.persistence.Transient;
@@ -20,6 +22,7 @@
private static final long serialVersionUID = 1L;
@Id
+ @GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
private String bezeichnung;
diff -r 6f9983f68248 -r 7339dd0f8a67 src/main/java/de/intevation/lada/model/stammdaten/Favorite.java
--- a/src/main/java/de/intevation/lada/model/stammdaten/Favorite.java Fri Sep 02 14:02:03 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/stammdaten/Favorite.java Fri Sep 02 14:02:54 2016 +0200
@@ -4,6 +4,8 @@
import javax.persistence.Column;
import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
import javax.persistence.Id;
@@ -16,6 +18,7 @@
private static final long serialVersionUID = 1L;
@Id
+ @GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
@Column(name="query_id")
diff -r 6f9983f68248 -r 7339dd0f8a67 src/main/java/de/intevation/lada/model/stammdaten/FilterValue.java
--- a/src/main/java/de/intevation/lada/model/stammdaten/FilterValue.java Fri Sep 02 14:02:03 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/stammdaten/FilterValue.java Fri Sep 02 14:02:54 2016 +0200
@@ -4,6 +4,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;
@@ -18,6 +20,7 @@
private static final long serialVersionUID = 1L;
@Id
+ @GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
@Column(name="filter_id")
diff -r 6f9983f68248 -r 7339dd0f8a67 src/main/java/de/intevation/lada/model/stammdaten/MessprogrammKategorie.java
--- a/src/main/java/de/intevation/lada/model/stammdaten/MessprogrammKategorie.java Fri Sep 02 14:02:03 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/stammdaten/MessprogrammKategorie.java Fri Sep 02 14:02:54 2016 +0200
@@ -5,6 +5,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;
import javax.persistence.Transient;
@@ -20,6 +22,7 @@
private static final long serialVersionUID = 1L;
@Id
+ @GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
private String bezeichnung;
diff -r 6f9983f68248 -r 7339dd0f8a67 src/main/java/de/intevation/lada/model/stammdaten/Ort.java
--- a/src/main/java/de/intevation/lada/model/stammdaten/Ort.java Fri Sep 02 14:02:03 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/stammdaten/Ort.java Fri Sep 02 14:02:54 2016 +0200
@@ -5,6 +5,8 @@
import javax.persistence.Column;
import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Transient;
@@ -20,6 +22,7 @@
private static final long serialVersionUID = 1L;
@Id
+ @GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
private String aktiv;
diff -r 6f9983f68248 -r 7339dd0f8a67 src/main/java/de/intevation/lada/model/stammdaten/Probenehmer.java
--- a/src/main/java/de/intevation/lada/model/stammdaten/Probenehmer.java Fri Sep 02 14:02:03 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/stammdaten/Probenehmer.java Fri Sep 02 14:02:54 2016 +0200
@@ -5,6 +5,8 @@
import javax.persistence.Column;
import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
@@ -18,6 +20,7 @@
private static final long serialVersionUID = 1L;
@Id
+ @GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
private String bearbeiter;
More information about the Lada-commits
mailing list