1 package org.hibernate.annotations; 3 4 import java.lang.annotation.Retention ; 5 import java.lang.annotation.Target ; 6 import static java.lang.annotation.ElementType.METHOD ; 7 import static java.lang.annotation.ElementType.FIELD ; 8 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 9 10 15 @Target ({METHOD, FIELD}) @Retention (RUNTIME) 16 public @interface Sort { 17 20 SortType type() default SortType.UNSORTED; 21 24 Class comparator() default void.class; 26 } 27 | Popular Tags |