NamedNativeQuery
Date: 2016-06-24

javax.persistence

## Annotation Type NamedNativeQuery

-     @Target(value=TYPE)
      @Retention(value=RUNTIME)
      public @interface NamedNativeQuery

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `java.lang.String` | `name`
    `java.lang.String` | `query`

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `QueryHint[]` | `hints`
    `java.lang.Class` | `resultClass`
    `java.lang.String` | `resultSetMapping`

- - ### Element Detail

    - #### name

          public abstract java.lang.String name

    - #### query

          public abstract java.lang.String query

    - #### hints

          public abstract QueryHint[] hints

      Default:
        {}

    - #### resultClass

          public abstract java.lang.Class resultClass

      Default:
        void.class

    - #### resultSetMapping

          public abstract java.lang.String resultSetMapping

      Default:
        ""