|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||
@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 {
. . .
}
| Modifier and Type | Required Element and Description |
|---|---|
ColumnOverride[] |
valueAn array of @ColumnOverride annotations to apply to the pureQuery bean class. |
public abstract ColumnOverride[] value
@ColumnOverride annotations to apply to the pureQuery bean class.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||