Annotation Type SqlQuery


@Retention(RUNTIME) @Target(METHOD) public @interface SqlQuery
Used to indicate that a method should execute a query.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The query (or query name if using a statement locator) to be executed.
  • Element Details

    • value

      String value
      The query (or query name if using a statement locator) to be executed. If no value is specified, the value will be the method name of the method being annotated. This is only useful in conjunction with a statement locator.
      Returns:
      the SQL string (or name)
      Default:
      ""