From 4bf2e54b3324278bb6d5478714c1b9fa9c035f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Henke?= Date: Thu, 5 May 2022 18:07:15 +0200 Subject: [PATCH] ordering --- .../jottyfan/timetrack/spring/done/impl/DoneGateway.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java b/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java index c4e7e8f..19ca296 100644 --- a/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java +++ b/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java @@ -75,7 +75,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllProjects() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_PROJECT).fetchInto(TProjectRecord.class); + return getJooq().selectFrom(T_PROJECT).orderBy(T_PROJECT.NAME).fetchInto(TProjectRecord.class); } /** @@ -88,7 +88,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllModules() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_MODULE).fetchInto(TModuleRecord.class); + return getJooq().selectFrom(T_MODULE).orderBy(T_MODULE.NAME).fetchInto(TModuleRecord.class); } /** @@ -101,7 +101,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllJobs() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_JOB).fetchInto(TJobRecord.class); + return getJooq().selectFrom(T_JOB).orderBy(T_JOB.NAME).fetchInto(TJobRecord.class); } /** @@ -114,7 +114,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllBillings() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_BILLING).fetchInto(TBillingRecord.class); + return getJooq().selectFrom(T_BILLING).orderBy(T_BILLING.NAME).fetchInto(TBillingRecord.class); } /**