Jakarta Persistence (JPA) Annotation Type
jakarta.persistence.AttributeOverrides
- Implemented Interfaces:
Annotation
- Target:
- Type, Method, Field
Used to override mappings of multiple properties or fields.
Example:
@Embedded @AttributeOverrides({ @AttributeOverride(name = "startDate", column = @Column(name = "EMP_START")), @AttributeOverride(name="endDate", column = @Column(name = "EMP_END"))}) public EmploymentPeriod getEmploymentPeriod() { ... }
- See Also:
- Since:
- Jakarta Persistence (JPA) 1.0
Public Static Fields
No JavaDoc Info for jakarta.persistence.AttributeOverrides/class
Annotation Elements
- Since:
- Jakarta Persistence (JPA) 1.0
Additional JDK methods inherited from java.lang.annotation.Annotation
annotationType(), equals(Object), hashCode(), toString()