# HG changeset patch # User Ingo Weinzierl # Date 1303218627 0 # Node ID bf4e12f1d0258438a0e8e316299fb8bc901a6eca # Parent 5a2df8677b3e340bcea0920b4f686a7617948199 The list of annotations returned by the AnnotationFactory is ordered by its range. flys-artifacts/trunk@1730 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 5a2df8677b3e -r bf4e12f1d025 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Apr 19 12:33:39 2011 +0000 +++ b/flys-artifacts/ChangeLog Tue Apr 19 13:10:27 2011 +0000 @@ -1,3 +1,9 @@ +2011-04-19 Ingo Weinzierl + + * src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java: + Ordered the list of annotations returned by this factory based on its + range. + 2011-04-19 Ingo Weinzierl * src/main/java/de/intevation/flys/artifacts/services/MainValuesService.java: diff -r 5a2df8677b3e -r bf4e12f1d025 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java Tue Apr 19 12:33:39 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java Tue Apr 19 13:10:27 2011 +0000 @@ -29,7 +29,7 @@ List ranges = rangesQuery.list(); Query query = session.createQuery( - "from Annotation where range in (:ranges)"); + "from Annotation where range in (:ranges) order by range.a"); query.setParameterList("ranges", ranges); return query.list(); }