@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface AdditionalCriteria
An additional criteria can be specified at the Entity or MappedSuperclass level. When specified at the mapped superclass level, it applies to all inheriting entities unless those entities define their own additional criteria, at which point the additional criteria from the mapped superclass is ignored.
The additional criteria supports any valid JPQL string and must use 'this' as an alias to form your additional criteria. E.G.,
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
(Required) The JPQL fragment to use as the additional criteria.
|