# HG changeset patch # User Ingo Weinzierl # Date 1347876582 0 # Node ID b9a99fcc78c319126f76e50a0152caab26e964b9 # Parent 90f91ba077a858aad4a1ee5efb5662d82de0cc7a Fixed broken loops to find the bed height epochs and singles for a given river and km range. flys-backend/trunk@5490 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 90f91ba077a8 -r b9a99fcc78c3 flys-backend/ChangeLog --- a/flys-backend/ChangeLog Thu Sep 13 16:34:02 2012 +0000 +++ b/flys-backend/ChangeLog Mon Sep 17 10:09:42 2012 +0000 @@ -1,3 +1,11 @@ +2012-09-17 Ingo Weinzierl + + * src/main/java/de/intevation/flys/model/BedHeightEpoch.java: + Corrected broken loop to find epochs for river and km range. + + * src/main/java/de/intevation/flys/model/BedHeightSingle.java: + Corrected broken loop to find singles for river and km range. + 2012-09-12 Sascha L. Teichmann * src/main/java/de/intevation/flys/importer/parsers/BedHeightParser.java: diff -r 90f91ba077a8 -r b9a99fcc78c3 flys-backend/src/main/java/de/intevation/flys/model/BedHeightEpoch.java --- a/flys-backend/src/main/java/de/intevation/flys/model/BedHeightEpoch.java Thu Sep 13 16:34:02 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/BedHeightEpoch.java Mon Sep 17 10:09:42 2012 +0000 @@ -180,8 +180,7 @@ List epochs = query.list(); List good = new ArrayList(); - for (BedHeightEpoch e: epochs) { - OUTER: + OUTER: for (BedHeightEpoch e: epochs) { for (BedHeightEpochValue value: e.getValues()) { double station = value.getStation().doubleValue(); diff -r 90f91ba077a8 -r b9a99fcc78c3 flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java --- a/flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java Thu Sep 13 16:34:02 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java Mon Sep 17 10:09:42 2012 +0000 @@ -241,8 +241,7 @@ List singles = query.list(); List good = new ArrayList(); - for (BedHeightSingle s: singles) { - OUTER: + OUTER: for (BedHeightSingle s: singles) { for (BedHeightSingleValue value: s.getValues()) { double station = value.getStation().doubleValue();