JPA Annotation

AttributeOverrides

Target: TYPE, METHOD, FIELD
Implemented Interfaces:
Annotation

Used to override mappings of multiple properties or fields.
Example:
    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="startDate",
                               column=@Column("EMP_START")),
            @AttributeOverride(name="endDate",
                               column=@Column("EMP_END"))
    })
    public EmploymentPeriod getEmploymentPeriod() { ... }
See Also:
AttributeOverride
Since:
JPA 1.0

Public Annotation Attributes

AttributeOverride[] value default null
(Required) One or more field or property mapping overrides.
Since:
JPA 1.0