KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > OrderBy


1 package org.hibernate.annotations;
2
3 import java.lang.annotation.Retention JavaDoc;
4 import java.lang.annotation.Target JavaDoc;
5 import static java.lang.annotation.ElementType.METHOD JavaDoc;
6 import static java.lang.annotation.ElementType.FIELD JavaDoc;
7 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
8
9 /**
10  * Order a collection using SQL ordering (not HQL ordering)
11  * @author Emmanuel Bernard
12  */

13 @Target JavaDoc({METHOD, FIELD}) @Retention JavaDoc(RUNTIME)
14 public @interface OrderBy {
15     /** SQL orderby clause */
16     String JavaDoc clause();
17 }
18
Popular Tags