注释类型 OrderBy


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface OrderBy
    Order a collection using SQL ordering (not HQL ordering). Different from OrderBy in that this expects SQL fragment, JPA OrderBy expects a valid JPQL order-by fragment.
    作者:
    Emmanuel Bernard, Steve Ebersole
    另请参阅:
    OrderBy, SortComparator, SortNatural
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      String clause
      SQL ordering clause.
    • 元素详细资料

      • clause

        String clause
        SQL ordering clause.