# HG changeset patch # User Raimund Renkert # Date 1424262359 -3600 # Node ID df031c2f458f8fdfd6ff2c39e601ce5c300e1ad7 # Parent 4fab79ec8a939d0c20045dbfc09095030a04090e Updated ort model. diff -r 4fab79ec8a93 -r df031c2f458f src/main/java/de/intevation/lada/model/Ort.java --- a/src/main/java/de/intevation/lada/model/Ort.java Wed Feb 18 13:25:45 2015 +0100 +++ b/src/main/java/de/intevation/lada/model/Ort.java Wed Feb 18 13:25:59 2015 +0100 @@ -12,6 +12,8 @@ import java.sql.Timestamp; import javax.persistence.Column; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.MappedSuperclass; import javax.persistence.Table; @@ -26,6 +28,8 @@ private static final long serialVersionUID = 1L; @Id + @GeneratedValue(strategy=GenerationType.IDENTITY) + @Column(name="id", unique=true, nullable=false) private Integer id; @Column(name="letzte_aenderung")