Annotation Interface Query
Annotation used in user-defined repositories to provide SQL for custom Query Methods.
- Since:
- 1.1
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Indicates if the annotated Query Method is a DML statement or an SQL statement.Takes a Cloud Spanner SQL string to define the actual query to be executed.
-
Element Details
-
value
String valueTakes a Cloud Spanner SQL string to define the actual query to be executed. This one will take precedence over the method name then.Please note that sorting options should be passed by a
Pageable
parameter instead of the query. Otherwise the sorting could be broken by logic that fetches eager-interleaved fields.- Returns:
- the SQL Cloud Spanner query string.
- Default:
- ""
-
dmlStatement
boolean dmlStatementIndicates if the annotated Query Method is a DML statement or an SQL statement.- Returns:
false
if the query method is a read-only SQL query.true
if the query method is executed as a DML query.
- Default:
- false
-