Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | package org.hibernate.annotations; |
2 | |||
3 | import static java.lang.annotation.ElementType.FIELD; |
||
4 | import static java.lang.annotation.ElementType.METHOD; |
||
5 | import java.lang.annotation.Retention; |
||
6 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
7 | import java.lang.annotation.Target; |
||
8 | |||
9 | /** |
||
10 | * Describe an index column of a List |
||
11 | * |
||
12 | * @author Matthew Inger |
||
13 | */ |
||
14 | @Target({METHOD, FIELD}) |
||
15 | @Retention(RUNTIME) |
||
16 | public @interface IndexColumn { |
||
17 | /** column name */ |
||
18 | String name(); |
||
19 | /** index in DB start from base */ |
||
20 | int base() default 0; |
||
21 | /** is the index nullable */ |
||
22 | boolean nullable() default true; |
||
23 | /** column definition, default to an appropriate integer */ |
||
24 | String columnDefinition() default ""; |
||
25 | } |