KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > GenericGenerator


1 //$Id: GenericGenerator.java,v 1.1 2005/07/24 02:44:47 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import static java.lang.annotation.ElementType.PACKAGE JavaDoc;
5 import static java.lang.annotation.ElementType.TYPE JavaDoc;
6 import static java.lang.annotation.ElementType.METHOD JavaDoc;
7 import static java.lang.annotation.ElementType.FIELD JavaDoc;
8 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
9 import java.lang.annotation.Target JavaDoc;
10 import java.lang.annotation.Retention JavaDoc;
11
12 /**
13  * Generator annotation describing any kind of Hibernate
14  * generator in a detyped manner
15  *
16  * @author Emmanuel Bernard
17  */

18 @Target JavaDoc({PACKAGE, TYPE, METHOD, FIELD}) @Retention JavaDoc(RUNTIME)
19 public @interface GenericGenerator {
20     /**
21      * unique generator name
22      */

23     String JavaDoc name();
24     /**
25      * Generator strategy either a predefined Hibernate
26      * strategy or a fully qualified class name.
27      */

28     String JavaDoc strategy();
29     /**
30      * Optional generator parameters
31      */

32     Parameter[] parameters() default {};
33 }
34
Popular Tags