@Override public boolean orderByIsEmpty() { return orderBy == null || orderBy.isEmpty(); }
@Override public boolean orderByIsEmpty() { return orderBy == null || orderBy.isEmpty(); }
/** * <p>defaultFindOrderBy.</p> * * @param query a {@link io.ebean.Query} object. */ protected void defaultFindOrderBy(Query<MODEL> query) { if (StringUtils.isNotBlank(defaultFindOrderBy)) { // see if we should use the default orderBy clause OrderBy<MODEL> orderBy = query.orderBy(); if (orderBy.isEmpty()) { query.orderBy(defaultFindOrderBy); } } }