comparison backend/src/main/java/org/dive4elements/river/model/WstColumn.java @ 6504:7664ab97b4c7

Backend: Store source of a wst column if available.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 28 Jun 2013 17:00:55 +0200
parents 4c3ccf2b0304
children 1c68d4b2a1c0
comparison
equal deleted inserted replaced
6501:7cb247824ed1 6504:7664ab97b4c7
30 { 30 {
31 private Integer id; 31 private Integer id;
32 private Wst wst; 32 private Wst wst;
33 private String name; 33 private String name;
34 private String description; 34 private String description;
35 private String source;
35 private Integer position; 36 private Integer position;
36 private TimeInterval timeInterval; 37 private TimeInterval timeInterval;
37 38
38 private List<WstColumnQRange> columnQRanges; 39 private List<WstColumnQRange> columnQRanges;
39 private List<WstColumnValue> columnValues; 40 private List<WstColumnValue> columnValues;
43 44
44 public WstColumn( 45 public WstColumn(
45 Wst wst, 46 Wst wst,
46 String name, 47 String name,
47 String description, 48 String description,
49 String source,
48 Integer position, 50 Integer position,
49 TimeInterval timeInterval 51 TimeInterval timeInterval
50 ) { 52 ) {
51 this.wst = wst; 53 this.wst = wst;
52 this.name = name; 54 this.name = name;
53 this.description = description; 55 this.description = description;
56 this.source = source;
54 this.position = position; 57 this.position = position;
55 this.timeInterval = timeInterval; 58 this.timeInterval = timeInterval;
56 } 59 }
57 60
58 @Id 61 @Id
87 return name; 90 return name;
88 } 91 }
89 92
90 public void setName(String name) { 93 public void setName(String name) {
91 this.name = name; 94 this.name = name;
95 }
96
97 @Column(name = "source")
98 public String getSource() {
99 return description;
100 }
101
102 public void setSource(String source) {
103 this.source = source;
92 } 104 }
93 105
94 @Column(name = "description") 106 @Column(name = "description")
95 public String getDescription() { 107 public String getDescription() {
96 return description; 108 return description;

http://dive4elements.wald.intevation.org