1 package org.hibernate.annotations;2 3 import java.lang.annotation.Retention ;4 import java.lang.annotation.Target ;5 import static java.lang.annotation.ElementType.METHOD ;6 import static java.lang.annotation.ElementType.FIELD ;7 import static java.lang.annotation.RetentionPolicy.RUNTIME ;8 9 /**10 * Order a collection using SQL ordering (not HQL ordering)11 * @author Emmanuel Bernard12 */13 @Target ({METHOD, FIELD}) @Retention (RUNTIME)14 public @interface OrderBy {15 /** SQL orderby clause */16 String clause();17 }18