Annotation Interface Where


There Where annotation allows augmenting the WHERE statement of generated queries with additional criterion.
Since:
1.0.0
Author:
graemerocher
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The string value that represents the additional query criterion.
  • Element Details

    • value

      String value
      The string value that represents the additional query criterion. For example: enabled = true

      Note that if it may be required to specify the query alias in queries. For example: book_.enabled = true. `@` can be used as a placeholder for the query's alias

      Parameterized variables can be specified using the dollar syntax: book_.enabled = :enabled. In this case the parameter must be declared in the method signature a compilation error will occur.

      Use cases including soft-delete, multi-tenancy etc.

      Returns:
      The additional query criterion.