Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: GenericGenerator.java 11282 2007-03-14 22:05:59Z epbernard $ |
2 | package org.hibernate.annotations; |
||
3 | |||
4 | import static java.lang.annotation.ElementType.*; |
||
5 | import java.lang.annotation.Retention; |
||
6 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
7 | import java.lang.annotation.Target; |
||
8 | |||
9 | /** |
||
10 | * Generator annotation describing any kind of Hibernate |
||
11 | * generator in a detyped manner |
||
12 | * |
||
13 | * @author Emmanuel Bernard |
||
14 | */ |
||
15 | @Target({PACKAGE, TYPE, METHOD, FIELD}) |
||
16 | @Retention(RUNTIME) |
||
17 | public @interface GenericGenerator { |
||
18 | /** |
||
19 | * unique generator name |
||
20 | */ |
||
21 | String name(); |
||
22 | /** |
||
23 | * Generator strategy either a predefined Hibernate |
||
24 | * strategy or a fully qualified class name. |
||
25 | */ |
||
26 | String strategy(); |
||
27 | /** |
||
28 | * Optional generator parameters |
||
29 | */ |
||
30 | Parameter[] parameters() default {}; |
||
31 | } |