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.AccessMode.*;
07:
08: @Target({METHOD,TYPE,PACKAGE})
09: @Retention(RUNTIME)
10: public @interface NamedQuery {
11: String name() default "";
12:
13: String queryString();
14:
15: String resultType() default "";
16:
17: AccessMode ejbInterfaceType() default LOCAL;
18: }
|