This commit is contained in:
Jörg Henke
2022-05-05 18:07:15 +02:00
parent 707707f7b9
commit 4bf2e54b33

View File

@ -75,7 +75,7 @@ public class DoneGateway {
* @throws SQLException * @throws SQLException
*/ */
public List<TProjectRecord> getAllProjects() throws DataAccessException, ClassNotFoundException, SQLException { public List<TProjectRecord> 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 * @throws SQLException
*/ */
public List<TModuleRecord> getAllModules() throws DataAccessException, ClassNotFoundException, SQLException { public List<TModuleRecord> 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 * @throws SQLException
*/ */
public List<TJobRecord> getAllJobs() throws DataAccessException, ClassNotFoundException, SQLException { public List<TJobRecord> 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 * @throws SQLException
*/ */
public List<TBillingRecord> getAllBillings() throws DataAccessException, ClassNotFoundException, SQLException { public List<TBillingRecord> 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);
} }
/** /**