# HG changeset patch # User Andre Heinecke # Date 1430148928 -7200 # Node ID 1083cb887ffb074b8c3675ba63ce17c85376188e # Parent 3d0ef0a66503047d2573b6039b9ffa1fccbacf36 (issue1754) Do not filter BedHeightSoundings to range. This is more symetric to WINFO Raw data and fixes the problematic master artifact information loss from issue1754 as the information from the master (range) is no longer required. diff -r 3d0ef0a66503 -r 1083cb887ffb artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java --- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java Mon Apr 27 15:15:44 2015 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java Mon Apr 27 17:35:28 2015 +0200 @@ -43,9 +43,7 @@ access.getHeightId()); List bedheightValues = BedHeightValue.getBedHeightValues( - single, - access.getFrom(true), - access.getTo(true)); + single); double[][] values = new double[2][bedheightValues.size()]; int i = 0; for (BedHeightValue bedheightValue : bedheightValues) { diff -r 3d0ef0a66503 -r 1083cb887ffb backend/src/main/java/org/dive4elements/river/model/BedHeightValue.java --- a/backend/src/main/java/org/dive4elements/river/model/BedHeightValue.java Mon Apr 27 15:15:44 2015 +0200 +++ b/backend/src/main/java/org/dive4elements/river/model/BedHeightValue.java Mon Apr 27 17:35:28 2015 +0200 @@ -140,6 +140,17 @@ this.soundingWidth = soundingWidth; } + public static List getBedHeightValues( + BedHeight single) { + Session session = SessionHolder.HOLDER.get(); + + Query query = session.createQuery( + "from BedHeightValue where bedHeight=:single"); + + query.setParameter("single", single); + return query.list(); + } + public static List getBedHeightValues( BedHeight single,