Annotation Interface Query


Defines the query string such as SQL, JPA-QL, Cypher etc that should be executed.
Since:
1.0
Author:
graemerocher
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
     
    boolean
     
  • Element Details

    • value

      String value
      Returns:
      The raw query string.
    • countQuery

      String countQuery
      Returns:
      The count query used for queries that return a Page
      Default:
      ""
    • nativeQuery

      boolean nativeQuery
      Returns:
      Whether the query is a native query
      Default:
      false
    • readOnly

      boolean readOnly
      Returns:
      Whether the transactional handling should by default be read-only
      Default:
      true