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
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
clause
SQL ordering clause.
-