EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.annotations
Annotation Type AdditionalCriteria


@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.,

Author:
Guy Pelletier
Since:
EclipseLink 2.2

Required Element Summary
 java.lang.String value
          (Required) The JPQL fragment to use as the additional criteria.
 

Element Detail

value

public abstract java.lang.String value
(Required) The JPQL fragment to use as the additional criteria.


EclipseLink 2.4.2, build 'v20130514-5956486' API Reference