javax.persistence.AttributeOverrides - JPA annotation
javax.persistence
Annotation AttributeOverrides
- Target:
- Classes and fields (including property get methods)
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.
- Since:
- JPA 1.0