Annotation Type NamedNativeQuery


@Target({TYPE,PACKAGE}) @Retention(RUNTIME) public @interface NamedNativeQuery
Extends NamedNativeQuery with Hibernate features
  • Element Details

    • name

      String name
    • query

      String query
    • resultClass

      Class resultClass
      Default:
      void.class
    • resultSetMapping

      String resultSetMapping
      Default:
      ""
    • flushMode

      FlushModeType flushMode
      the flush mode for the query
      Default:
      PERSISTENCE_CONTEXT
    • cacheable

      boolean cacheable
      mark the query as cacheable or not
      Default:
      false
    • cacheRegion

      String cacheRegion
      the cache region to use
      Default:
      ""
    • fetchSize

      int fetchSize
      the number of rows fetched by the JDBC Driver per roundtrip
      Default:
      -1
    • timeout

      int timeout
      the query timeout in seconds
      Default:
      -1
    • callable

      boolean callable
      Default:
      false
    • comment

      String comment
      comment added to the SQL query, useful for the DBA
      Default:
      ""
    • cacheMode

      CacheModeType cacheMode
      the cache mode used for this query
      Default:
      NORMAL
    • readOnly

      boolean readOnly
      marks whether the results are fetched in read-only mode or not
      Default:
      false