# HG changeset patch # User Sascha L. Teichmann # Date 1329237439 0 # Node ID 67f362883fe42bca49a13223c4bbb944635c70de # Parent 83abe19d4f405e3dd6b61e6393364faded65ae9c flys/issue499: Sort the values of the discharge table by Q. flys-backend/trunk@4051 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 83abe19d4f40 -r 67f362883fe4 flys-backend/ChangeLog --- a/flys-backend/ChangeLog Thu Feb 09 11:30:26 2012 +0000 +++ b/flys-backend/ChangeLog Tue Feb 14 16:37:19 2012 +0000 @@ -1,3 +1,8 @@ +2012-02-14 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/model/DischargeTable.java: + The list of DischargeTableValue is now sorted by Q. + 2012-02-09 Ingo Weinzierl * src/main/java/de/intevation/flys/model/Gauge.java: Added a method diff -r 83abe19d4f40 -r 67f362883fe4 flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java --- a/flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java Thu Feb 09 11:30:26 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java Tue Feb 14 16:37:19 2012 +0000 @@ -11,6 +11,7 @@ import javax.persistence.GenerationType; import javax.persistence.OneToMany; import javax.persistence.OneToOne; +import javax.persistence.OrderBy; import javax.persistence.JoinColumn; import java.util.List; @@ -105,6 +106,7 @@ @OneToMany @JoinColumn(name = "table_id") + @OrderBy("q") public List getDischargeTableValues() { return dischargeTableValues; }