01: package javax.persistence;
02:
03: import java.lang.annotation.*;
04: import static java.lang.annotation.ElementType.*;
05: import static java.lang.annotation.RetentionPolicy.*;
06: import static javax.persistence.GeneratorType.*;
07:
08: @Target({METHOD,FIELD})
09: @Retention(RUNTIME)
10: public @interface Id {
11: GeneratorType generate() default NONE;
12:
13: String generator() default "";
14: }
|