javax.persistence.AttributeOverrides - JPA 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() { ... }
- Since:
- JPA 1.0
- See Also:
-
AttributeOverride
(Required) One or more field or property mapping overrides.
(Required) One or more field or property mapping overrides.
- Since:
- JPA 1.0