Package io.micronaut.data.annotation
Annotation Type Query
-
@Retention(RUNTIME) @Target(METHOD) @Documented @Inherited public @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 java.lang.String
value
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
countQuery
boolean
nativeQuery
boolean
readOnly
-
-
-
-
countQuery
java.lang.String countQuery
- Returns:
- The count query used for queries that return a
Page
- Default:
- ""
-
-