Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: Sort.java 11282 2007-03-14 22:05:59Z epbernard $ |
2 | package org.hibernate.annotations; |
||
3 | |||
4 | import static java.lang.annotation.ElementType.FIELD; |
||
5 | import static java.lang.annotation.ElementType.METHOD; |
||
6 | import java.lang.annotation.Retention; |
||
7 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
8 | import java.lang.annotation.Target; |
||
9 | |||
10 | /** |
||
11 | * Collection sort |
||
12 | * (Java level sorting) |
||
13 | * |
||
14 | * @author Emmanuel Bernard |
||
15 | */ |
||
16 | @Target({METHOD, FIELD}) |
||
17 | @Retention(RUNTIME) |
||
18 | public @interface Sort { |
||
19 | /** |
||
20 | * sort type |
||
21 | */ |
||
22 | SortType type() default SortType.UNSORTED; |
||
23 | /** |
||
24 | * Sort comparator implementation |
||
25 | */ |
||
26 | //TODO find a way to use Class<Comparator> |
||
27 | |||
28 | Class comparator() default void.class; |
||
29 | } |