Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/flys/importer/ImportFlowVelocityModelValue.java @ 2828:ac13e466a55e
Added a parser for flow velocity model data and adjusted the db relation schema (missing q column).
flys-backend/trunk@4245 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 17 Apr 2012 09:37:52 +0000 |
parents | 85b25e74594f |
children | ac5bd90697c1 |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportFlowVelocityModelValue.java Tue Apr 17 08:50:15 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportFlowVelocityModelValue.java Tue Apr 17 09:37:52 2012 +0000 @@ -15,6 +15,7 @@ public class ImportFlowVelocityModelValue { private BigDecimal station; + private BigDecimal q; private BigDecimal totalChannel; private BigDecimal mainChannel; private BigDecimal shearStress; @@ -24,11 +25,13 @@ public ImportFlowVelocityModelValue( BigDecimal station, + BigDecimal q, BigDecimal totalChannel, BigDecimal mainChannel, BigDecimal shearStress ) { this.station = station; + this.q = q; this.totalChannel = totalChannel; this.mainChannel = mainChannel; this.shearStress = shearStress; @@ -59,7 +62,7 @@ if (values.isEmpty()) { peer = new FlowVelocityModelValue( - model, station, totalChannel, mainChannel, shearStress); + model, station, q, totalChannel, mainChannel, shearStress); session.save(peer); }