changeset 332:bf4e12f1d025

The list of annotations returned by the AnnotationFactory is ordered by its range. flys-artifacts/trunk@1730 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 19 Apr 2011 13:10:27 +0000
parents 5a2df8677b3e
children 67b3f54188aa
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <ingo@intevation.de>
+
+	* 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 <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/services/MainValuesService.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<Range> 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();
     }

http://dive4elements.wald.intevation.org