comparison flys-backend/src/main/java/de/intevation/flys/model/Wst.java @ 467:c8c09e31cdb8

Added new column 'kind' in discharge tables and wst to distinguish between different types. flys-backend/trunk@1703 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 15 Apr 2011 10:31:15 +0000
parents 3169b559ca3c
children 8d76556c9616
comparison
equal deleted inserted replaced
466:8bd50b41dea6 467:c8c09e31cdb8
18 implements Serializable 18 implements Serializable
19 { 19 {
20 private Integer id; 20 private Integer id;
21 private River river; 21 private River river;
22 private String description; 22 private String description;
23 private Integer kind;
23 24
24 public Wst() { 25 public Wst() {
25 } 26 }
26 27
27 public Wst(River river, String description) { 28 public Wst(River river, String description) {
29 this(river, description, 0);
30 }
31
32 public Wst(River river, String description, Integer kind) {
28 this.river = river; 33 this.river = river;
29 this.description = description; 34 this.description = description;
35 this.kind = kind;
30 } 36 }
31 37
32 @Id 38 @Id
33 @SequenceGenerator( 39 @SequenceGenerator(
34 name = "SEQUENCE_WSTS_ID_SEQ", 40 name = "SEQUENCE_WSTS_ID_SEQ",
62 } 68 }
63 69
64 public void setDescription(String description) { 70 public void setDescription(String description) {
65 this.description = description; 71 this.description = description;
66 } 72 }
73
74 @Column(name = "kind")
75 public Integer getKind() {
76 return kind;
77 }
78
79 public void setKind(Integer kind) {
80 this.kind = kind;
81 }
67 } 82 }
68 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 83 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org