Package org.hibernate.annotations
Annotation Type OrderBy
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface OrderBy
Order a collection using SQL ordering (not HQL ordering). Different fromOrderBy
in that this expects SQL fragment, JPA OrderBy expects a valid JPQL order-by fragment.- See Also:
OrderBy
,SortComparator
,SortNatural
-
-
Element Detail
-
clause
String clause
SQL ordering clause.
-
-