changeset 909:2f6781557bea

Order result colums by the index stored in the db.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 07 Apr 2016 15:56:14 +0200
parents 51051e85348f
children 8c61587f7a7b b45141649eec
files src/main/java/de/intevation/lada/model/stamm/Query.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/stamm/Query.java	Thu Apr 07 15:38:40 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/stamm/Query.java	Thu Apr 07 15:56:14 2016 +0200
@@ -17,10 +17,9 @@
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.OneToMany;
+import javax.persistence.OrderBy;
 import javax.persistence.Transient;
 
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
 
 /**
  * The persistent class for the query database table.
@@ -52,6 +51,7 @@
 
     //bi-directional many-to-one association to Result
     @OneToMany(fetch=FetchType.EAGER, mappedBy="query")
+    @OrderBy("index")
     private List<Result> results;
 
     public Query() {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)