0 1 2 3 4 5
readAllQuery.addOrderBy(expBuilder.get("address").get("city").ascending())
244245246247248249250251252253254
OrderByBuilder orderByBuilder = builder.orderBy(); for (OrderBySpec spec : orderBy) { OrderByOperandBuilder operandBuilder = null; switch (spec.getOrder()) { case ASCENDING: operandBuilder = orderByBuilder.ascending(); break; case DESCENDING: operandBuilder = orderByBuilder.descending(); break; }