changeset 8290:9b295cc828c5

In case the list is not ordered, in the end diagrams might look weird.
author "Tom Gottfried <tom@intevation.de>"
date Wed, 17 Sep 2014 17:13:48 +0200
parents f12a5c55864d
children 84ac8549e87b
files backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java	Wed Sep 17 13:24:13 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java	Wed Sep 17 17:13:48 2014 +0200
@@ -21,6 +21,7 @@
 import javax.persistence.GenerationType;
 import javax.persistence.JoinColumn;
 import javax.persistence.OneToOne;
+import javax.persistence.OrderBy;
 
 import org.hibernate.Session;
 import org.hibernate.Query;
@@ -177,6 +178,7 @@
 
     @OneToMany
     @JoinColumn(name="sediment_load_ls_id")
+    @OrderBy("station")
     public List<SedimentLoadLSValue> getSedimentLoadLSValues() {
         return values;
     }

http://dive4elements.wald.intevation.org