# HG changeset patch # User Raimund Renkert # Date 1429191795 -7200 # Node ID 34b38ff45990224f0bd6f867a2b6b9dc2a05c79f # Parent 328dd57b7b43537525821eb837b952c54275e342 Made probe_id_alt and messungs_id_alt insertable. diff -r 328dd57b7b43 -r 34b38ff45990 src/main/java/de/intevation/lada/model/land/MessungTranslation.java --- 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() { diff -r 328dd57b7b43 -r 34b38ff45990 src/main/java/de/intevation/lada/model/land/ProbeTranslation.java --- 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() {