Mercurial > dive4elements > river
changeset 2425:67f362883fe4
flys/issue499: Sort the values of the discharge table by Q.
flys-backend/trunk@4051 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 14 Feb 2012 16:37:19 +0000 |
parents | 83abe19d4f40 |
children | f97e9b810e58 3c26e16ae6c2 |
files | flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/model/DischargeTable.java |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/model/DischargeTable.java: + The list of DischargeTableValue is now sorted by Q. + 2012-02-09 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/model/Gauge.java: Added a method
--- 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<DischargeTableValue> getDischargeTableValues() { return dischargeTableValues; }