Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/model/stammdaten/FilterValue.java @ 1039:7339dd0f8a67 schema-update
Added Annotation to set the id to generated value.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 02 Sep 2016 14:02:54 +0200 |
parents | 1c41c7b8f7c2 |
children |
comparison
equal
deleted
inserted
replaced
1038:6f9983f68248 | 1039:7339dd0f8a67 |
---|---|
2 | 2 |
3 import java.io.Serializable; | 3 import java.io.Serializable; |
4 | 4 |
5 import javax.persistence.Column; | 5 import javax.persistence.Column; |
6 import javax.persistence.Entity; | 6 import javax.persistence.Entity; |
7 import javax.persistence.GeneratedValue; | |
8 import javax.persistence.GenerationType; | |
7 import javax.persistence.Id; | 9 import javax.persistence.Id; |
8 import javax.persistence.Table; | 10 import javax.persistence.Table; |
9 | 11 |
10 | 12 |
11 /** | 13 /** |
16 @Table(name="filter_value") | 18 @Table(name="filter_value") |
17 public class FilterValue implements Serializable { | 19 public class FilterValue implements Serializable { |
18 private static final long serialVersionUID = 1L; | 20 private static final long serialVersionUID = 1L; |
19 | 21 |
20 @Id | 22 @Id |
23 @GeneratedValue(strategy=GenerationType.IDENTITY) | |
21 private Integer id; | 24 private Integer id; |
22 | 25 |
23 @Column(name="filter_id") | 26 @Column(name="filter_id") |
24 private Integer filterId; | 27 private Integer filterId; |
25 | 28 |