comparison flys-backend/src/main/java/de/intevation/flys/model/WstColumn.java @ 471:3570e4af8cb2

Added 'position' column to wst_columns to allow order them by there column position in the original wst file. flys-backend/trunk@1710 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 15 Apr 2011 16:06:15 +0000
parents 3169b559ca3c
children
comparison
equal deleted inserted replaced
470:f4afea9b7537 471:3570e4af8cb2
22 { 22 {
23 private Integer id; 23 private Integer id;
24 private Wst wst; 24 private Wst wst;
25 private String name; 25 private String name;
26 private String description; 26 private String description;
27 private Integer position;
27 private TimeInterval timeInterval; 28 private TimeInterval timeInterval;
29
28 private List<WstColumnQRange> columnQRanges; 30 private List<WstColumnQRange> columnQRanges;
29 private List<WstColumnValue> columnValues; 31 private List<WstColumnValue> columnValues;
30 32
31 public WstColumn() { 33 public WstColumn() {
32 } 34 }
33 35
34 public WstColumn( 36 public WstColumn(
35 Wst wst, 37 Wst wst,
36 String name, 38 String name,
37 String description, 39 String description,
40 Integer position,
38 TimeInterval timeInterval 41 TimeInterval timeInterval
39 ) { 42 ) {
40 this.wst = wst; 43 this.wst = wst;
41 this.name = name; 44 this.name = name;
42 this.description = description; 45 this.description = description;
46 this.position = position;
43 this.timeInterval = timeInterval; 47 this.timeInterval = timeInterval;
44 } 48 }
45 49
46 @Id 50 @Id
47 @SequenceGenerator( 51 @SequenceGenerator(
86 90
87 public void setDescription(String description) { 91 public void setDescription(String description) {
88 this.description = description; 92 this.description = description;
89 } 93 }
90 94
95 @Column(name = "position")
96 public Integer getPosition() {
97 return position;
98 }
99
100 public void setPosition(Integer position) {
101 this.position = position;
102 }
103
91 @OneToOne 104 @OneToOne
92 @JoinColumn(name = "time_interval_id" ) 105 @JoinColumn(name = "time_interval_id" )
93 public TimeInterval getTimeInterval() { 106 public TimeInterval getTimeInterval() {
94 return timeInterval; 107 return timeInterval;
95 } 108 }

http://dive4elements.wald.intevation.org