Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/WstColumn.java Fri Apr 15 15:28:35 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/WstColumn.java Fri Apr 15 16:06:15 2011 +0000 @@ -24,7 +24,9 @@ private Wst wst; private String name; private String description; + private Integer position; private TimeInterval timeInterval; + private List<WstColumnQRange> columnQRanges; private List<WstColumnValue> columnValues; @@ -35,11 +37,13 @@ Wst wst, String name, String description, + Integer position, TimeInterval timeInterval ) { this.wst = wst; this.name = name; this.description = description; + this.position = position; this.timeInterval = timeInterval; } @@ -88,6 +92,15 @@ this.description = description; } + @Column(name = "position") + public Integer getPosition() { + return position; + } + + public void setPosition(Integer position) { + this.position = position; + } + @OneToOne @JoinColumn(name = "time_interval_id" ) public TimeInterval getTimeInterval() {