@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE,TYPE}) @Documented @Repeatable(value=WhereSpecifications.class) @Inherited public @interface Where
Where
annotation allows augmenting the WHERE
statement of generated
queries with additional criterion.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
The string value that represents the additional query criterion.
|
public abstract java.lang.String value
enabled = true
Note that if it may be required to specify the query alias in queries. For example: book_.enabled = true
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.