Mercurial > dive4elements > river
diff backend/src/main/java/org/dive4elements/river/model/BedHeightSingleValue.java @ 6201:dc166b225775
Backed out changeset 53fca3392c9f
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Fri, 24 May 2013 16:26:41 +0200 |
parents | 53fca3392c9f |
children | a3fb76cf79b6 |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/model/BedHeightSingleValue.java Fri May 24 16:03:52 2013 +0200 +++ b/backend/src/main/java/org/dive4elements/river/model/BedHeightSingleValue.java Fri May 24 16:26:41 2013 +0200 @@ -43,12 +43,12 @@ private BedHeightSingle bedHeight; - private Double station; - private Double height; - private Double uncertainty; - private Double dataGap; + private BigDecimal station; + private BigDecimal height; + private BigDecimal uncertainty; + private BigDecimal dataGap; private BigDecimal soundingWidth; - private Double width; + private BigDecimal width; public BedHeightSingleValue() { @@ -56,12 +56,12 @@ public BedHeightSingleValue( BedHeightSingle bedHeight, - Double station, - Double height, - Double uncertainty, - Double dataGap, + BigDecimal station, + BigDecimal height, + BigDecimal uncertainty, + BigDecimal dataGap, BigDecimal soundingWidth, - Double width + BigDecimal width ) { this.bedHeight = bedHeight; this.station = station; @@ -100,38 +100,38 @@ } @Column(name = "station") - public Double getStation() { + public BigDecimal getStation() { return station; } - public void setStation(Double station) { + public void setStation(BigDecimal station) { this.station = station; } @Column(name = "height") - public Double getHeight() { + public BigDecimal getHeight() { return height; } - public void setHeight(Double height) { + public void setHeight(BigDecimal height) { this.height = height; } @Column(name="uncertainty") - public Double getUncertainty() { + public BigDecimal getUncertainty() { return uncertainty; } - public void setUncertainty(Double uncertainty) { + public void setUncertainty(BigDecimal uncertainty) { this.uncertainty = uncertainty; } @Column(name="data_gap") - public Double getDataGap() { + public BigDecimal getDataGap() { return dataGap; } - public void setDataGap(Double dataGap) { + public void setDataGap(BigDecimal dataGap) { this.dataGap = dataGap; } @@ -145,11 +145,11 @@ } @Column(name="width") - public Double getWidth() { + public BigDecimal getWidth() { return width; } - public void setWidth(Double width) { + public void setWidth(BigDecimal width) { this.width = width; } @@ -166,8 +166,8 @@ " and station >= :kmLo and station <= :kmHi"); query.setParameter("single", single); - query.setParameter("kmLo", new Double(kmLo)); - query.setParameter("kmHi", new Double(kmHi)); + query.setParameter("kmLo", new BigDecimal(kmLo)); + query.setParameter("kmHi", new BigDecimal(kmHi)); return query.list(); }