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

Annotation Elements

(Required) One or more field or property mapping overrides.
Since:
Jakarta Persistence (JPA) 1.0

Additional JDK methods inherited from java.lang.annotation.Annotation

java.lang.annotation.Annotation/annotationType(), java.lang.annotation.Annotation/equals(Object), java.lang.annotation.Annotation/hashCode(), java.lang.annotation.Annotation/toString()