Mercurial > dive4elements > river
diff backend/src/main/java/org/dive4elements/river/importer/ImportBedHeightSingleValue.java @ 8554:3a0522f1a532
Morphological width imported and stored with heights is redundant to table morphologic_width.
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Mon, 16 Feb 2015 09:00:08 +0100 |
parents | e2eb1a110b44 |
children | b5c54a6380e8 |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/ImportBedHeightSingleValue.java Mon Feb 16 08:39:06 2015 +0100 +++ b/backend/src/main/java/org/dive4elements/river/importer/ImportBedHeightSingleValue.java Mon Feb 16 09:00:08 2015 +0100 @@ -32,7 +32,6 @@ protected Double uncertainty; protected Double dataGap; protected Double soundingWidth; - protected Double width; protected BedHeightSingleValue peer; @@ -43,8 +42,7 @@ Double height, Double uncertainty, Double dataGap, - Double soundingWidth, - Double width + Double soundingWidth ) { this.bedHeight = bedHeight; this.station = station; @@ -52,7 +50,6 @@ this.uncertainty = uncertainty; this.dataGap = dataGap; this.soundingWidth = soundingWidth; - this.width = width; } @@ -76,8 +73,7 @@ " height=:height and " + " uncertainty=:uncertainty and " + " dataGap=:dataGap and " + - " soundingWidth=:soundingWidth and " + - " width=:width"); + " soundingWidth=:soundingWidth"); query.setParameter("bedHeight", bedHeight); query.setParameter("station", station); @@ -85,7 +81,6 @@ query.setParameter("uncertainty", uncertainty); query.setParameter("dataGap", dataGap); query.setParameter("soundingWidth", soundingWidth); - query.setParameter("width", width); List<BedHeightSingleValue> values = query.list(); if (values.isEmpty()) { @@ -95,8 +90,7 @@ height, uncertainty, dataGap, - soundingWidth, - width + soundingWidth ); session.save(peer); }