com.ibm.pdq.annotation
Annotation Type ColumnOverrides
-
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ColumnOverrides
For queries against databases, specifies an array of @ColumnOverride annotations. This annotation allows more than one @ColumnOverride annotation to be specified for a pureQuery
bean class. When @ColumnOverrides is provided for a class, all @ColumnOverride annotations must be provided in the @ColumnOverrides array; none can be
specified outside of the array.
The following example illustrates how property-to-column mappings can be specified by using @ColumnOverrides:
@ColumnOverrides( {
@ColumnOverride(propertyName = "departmentName", column = "DEPTNAME"),
@ColumnOverride(propertyName = "departmentNumber", column = "DEPTNO") })
public class Department {
. . .
}
Required Element Summary
value
public abstract ColumnOverride[] value
- An array of
@ColumnOverride annotations to apply to the
pureQuery bean class.