Top Description Methods
org.hibernate.annotations

public @Interface OrderBy

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

Order a collection using SQL ordering (not HQL ordering). Different from javax.persistence.OrderBy in that this expects SQL fragment, JPA OrderBy expects a valid JPQL order-by fragment.
Authors
Emmanuel Bernard, Steve Ebersole
See Also
javax.persistence.OrderBy, SortComparator, SortNatural

Method Summary

Modifier and TypeMethod and Description
public String
clause()

SQL ordering clause.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

clauseback to summary
public String clause()

SQL ordering clause.