예제 #1
0
  public OrderCriteria buildOrderCriteria() {
    if (orderCriteria == null) {
      return defaultOrderCriteria;
    }
    OrderCriteria result = new OrderCriteria();
    String[] orders = orderCriteria.split(",");
    for (String order : orders) {
      String[] orderInfo = order.split(":");
      result.addOrder(new Order(orderInfo[0], orderInfo[1]));
    }

    return result;
  }
예제 #2
0
 static {
   defaultOrderCriteria.addOrder(new Order("id", Sequence.DESC));
 }