Mercurial > lada > lada-server
changeset 484:df031c2f458f
Updated ort model.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Feb 2015 13:25:59 +0100 |
parents | 4fab79ec8a93 |
children | 213c492a1af7 |
files | src/main/java/de/intevation/lada/model/Ort.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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")