changeset 603:34b38ff45990

Made probe_id_alt and messungs_id_alt insertable.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 16 Apr 2015 15:43:15 +0200
parents 328dd57b7b43
children 6c2921100b7f
files src/main/java/de/intevation/lada/model/land/MessungTranslation.java src/main/java/de/intevation/lada/model/land/ProbeTranslation.java
diffstat 2 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/land/MessungTranslation.java	Wed Apr 08 10:45:55 2015 +0200
+++ b/src/main/java/de/intevation/lada/model/land/MessungTranslation.java	Thu Apr 16 15:43:15 2015 +0200
@@ -9,10 +9,13 @@
 
 import java.io.Serializable;
 
-import javax.persistence.*;
-
-import org.hibernate.annotations.Generated;
-import org.hibernate.annotations.GenerationTime;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
 
 import com.fasterxml.jackson.annotation.JsonIgnore;
 
@@ -33,8 +36,8 @@
     @OneToOne
     private LMessung messungs;
 
-    @Generated(GenerationTime.INSERT)
-    @Column(name="messungs_id_alt", insertable=false)
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    @Column(name="messungs_id_alt")
     private Integer messungsIdAlt;
 
     public MessungTranslation() {
--- a/src/main/java/de/intevation/lada/model/land/ProbeTranslation.java	Wed Apr 08 10:45:55 2015 +0200
+++ b/src/main/java/de/intevation/lada/model/land/ProbeTranslation.java	Thu Apr 16 15:43:15 2015 +0200
@@ -17,9 +17,6 @@
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
 
-import org.hibernate.annotations.Generated;
-import org.hibernate.annotations.GenerationTime;
-
 import com.fasterxml.jackson.annotation.JsonIgnore;
 
 
@@ -39,8 +36,8 @@
     @OneToOne
     private LProbe probe;
 
-    @Generated(GenerationTime.INSERT)
-    @Column(name="probe_id_alt", insertable=false)
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    @Column(name="probe_id_alt")
     private String probeIdAlt;
 
     public ProbeTranslation() {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)