Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## javax.persistence
Annotation Type NamedQuery

    @Target(value=TYPE)
    @Retention(value=RUNTIME)
    public @interface NamedQuery

Is used to specify a named query in the Java Persistence query language, which is a static query expressed in metadata. Query names are scoped to the persistence unit.

Author:
  Emmanuel Bernard

Required Element Summary
`String` | `name` Refers to the query when using the EntityManager methods that create query objects.
`String` | `query` The query string in the Java Persistence query language

Optional Element Summary
`QueryHint[]` | `hints` Vendor-specific query hints

Element Detail

### name

    public abstract String name

  Refers to the query when using the EntityManager methods that create query objects.

### query

    public abstract String query

  The query string in the Java Persistence query language

### hints

    public abstract QueryHint[] hints

  Vendor-specific query hints

  Default:
    {}

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT