/* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.persistence; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import javax.ejb.AccessMode; /** * @author Bill Burke * @version $Revision: 1.1 $ */ @Target({ElementType.METHOD, ElementType.TYPE, ElementType.PACKAGE}) @Retention(RetentionPolicy.RUNTIME) public @interface NamedQuery { String name() default ""; String queryString(); String resultType() default ""; AccessMode ejbInterfaceType() default AccessMode.LOCAL; }