diff --git a/src/main/java/io/ebean/ExpressionList.java b/src/main/java/io/ebean/ExpressionList.java index b3e3f8b6c..5c7750cd3 100644 --- a/src/main/java/io/ebean/ExpressionList.java +++ b/src/main/java/io/ebean/ExpressionList.java @@ -70,30 +70,40 @@ public interface ExpressionList { */ ExpressionList order(String orderByClause); + /** + * Set the order by clause replacing the existing order by clause if there is + * one. + *

+ * This follows SQL syntax using commas between each property with the + * optional asc and desc keywords representing ascending and descending order + * respectively. + */ + ExpressionList orderBy(String orderBy); + /** * Return the OrderBy so that you can append an ascending or descending * property to the order by clause. *

* This will never return a null. If no order by clause exists then an 'empty' * OrderBy object is returned. - *

+ *

+ * This is the same as orderBy() */ OrderBy order(); /** - * Deprecated migrate to order(). + * Return the OrderBy so that you can append an ascending or descending + * property to the order by clause. + *

+ * This will never return a null. If no order by clause exists then an 'empty' + * OrderBy object is returned. + *

+ * This is the same as order() */ - @Deprecated OrderBy orderBy(); /** - * Deprecated migrate to {@link #order(String)} - */ - @Deprecated - Query orderBy(String orderBy); - - /** - * Deprecated migrate to {@link #order(String)} + * Deprecated migrate to {@link #orderBy(String)} */ @Deprecated Query setOrderBy(String orderBy);