[PATCH] In case the list is not ordered, in the end diagrams might look weird

Wald Commits scm-commit at wald.intevation.org
Wed Sep 17 17:13:52 CEST 2014


# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1410966828 -7200
# Node ID 9b295cc828c587cf348b9e8368fe8ae88aef6cc0
# Parent  f12a5c55864d35cf79a251c96ea5f3a8a35d8ba9
In case the list is not ordered, in the end diagrams might look weird.

diff -r f12a5c55864d -r 9b295cc828c5 backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java
--- 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;
     }


More information about the Dive4Elements-commits mailing list