Annotation Type Query

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean dmlStatement
      Indicates if the annotated Query Method is a DML statement or an SQL statement.
      String value
      Takes a Cloud Spanner SQL string to define the actual query to be executed.
    • Element Detail

      • value

        String value
        Takes 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 dmlStatement
        Indicates 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