How do you do ordering with SQL Object Queries in JDBI?
I want to do something like:
@SqlQuery(
\"SELECT
well it turns out that you add the ORDER BY to your query like so
@SqlQuery("SELECT * FROM incident_events WHERE incident_id=:incidentId ORDER BY event_time DESC LIMIT :limit OFFSET :offset")
List getPaginated(@Bind("incidentId") int incidentId, @Bind("limit") int limit, @Bind("offset") int offset);