Package io.micronaut.data.annotation
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
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
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
-