Annotation Type 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.
    See Also:
    OrderBy, SortComparator, SortNatural
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String clause
      SQL ordering clause.
    • Element Detail

      • clause

        java.lang.String clause
        SQL ordering clause.