changeset 4262:87c3a3ac6ddf

Order MeasurementStations by station km Order the MeasurementStations of a river by the km of the station.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 26 Oct 2012 11:06:50 +0200
parents 1264fef59bfa
children 6abc8507e3c8
files flys-backend/src/main/java/de/intevation/flys/model/River.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/River.java	Fri Oct 26 11:05:54 2012 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/model/River.java	Fri Oct 26 11:06:50 2012 +0200
@@ -13,6 +13,7 @@
 import javax.persistence.SequenceGenerator;
 import javax.persistence.OneToMany;
 import javax.persistence.OneToOne;
+import javax.persistence.OrderBy;
 import javax.persistence.JoinColumn;
 import javax.persistence.GenerationType;
 
@@ -124,6 +125,7 @@
 
 
     @OneToMany
+    @OrderBy("station")
     @JoinColumn(name="river_id")
     public List<MeasurementStation> getMeasurementStations() {
         return measurementstations;

http://dive4elements.wald.intevation.org