Skip to content

Support order clauses

Requirement

Add support for ordering queries using objects similar to the WhereClause. The objects will work in the same way but focus on generating the required JPQL to order the results of a query instead of filtering it.

Value Proposition

Ordering a query may make sense in queries such as findFirst or findFirstXElements. In these cases the query will be both filtered and ordered.

Design Ideas

Take inspiration from the WhereClause interface and implementations.