Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: Columns.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 | import javax.persistence.Column; |
||
10 | |||
11 | /** |
||
12 | * Support an array of columns. Useful for component user types mappings |
||
13 | * |
||
14 | * @author Emmanuel Bernard |
||
15 | */ |
||
16 | @Target({METHOD, FIELD}) |
||
17 | @Retention(RUNTIME) |
||
18 | public @interface Columns { |
||
19 | Column[] columns(); |
||
20 | } |