Annotation Type NamedNativeQuery

      • query

        String query
        The native SQL query string.
      • hints

        QueryHint[] hints
        Query properties and hints. (May include vendor-specific query hints.)
        Default:
        {}
      • resultClass

        Class<?> resultClass
        The class of each query result. If a result set mapping is specified, the specified result class must agree with the type inferred from the result set mapping. If a resultClass is not explicitly specified, then it is inferred from the result set mapping, if any, or defaults to Object or Object[]. The query result class may be overridden by explicitly passing a class object to EntityManager.createNamedQuery(String, Class).
        Default:
        void.class
      • resultSetMapping

        String resultSetMapping
        The name of a SqlResultSetMapping, as defined in metadata. The named result set mapping is used to interpret the result set of the native SQL query.

        Alternatively, the elements entities(), classes(), and columns() may be used to specify a result set mapping. These elements may not be used in conjunction with resultSetMapping.

        Default:
        ""
      • entities

        EntityResult[] entities
        Specifies the result set mapping to entities. May not be used in combination with resultSetMapping().
        Since:
        3.2
        Default:
        {}
      • columns

        ColumnResult[] columns
        Specifies the result set mapping to scalar values. May not be used in combination with resultSetMapping().
        Since:
        3.2
        Default:
        {}