Top Description Methods
jakarta.persistence

public @Interface AttributeOverrides

extends Annotation
Annotations
@Target:TYPE, METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention

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() { ... }
@Embedded
@AttributeOverrides({
    @AttributeOverride(name = "startDate",
                       column = @Column(name = "EMP_START")),
    @AttributeOverride(name="endDate",
                       column = @Column(name = "EMP_END"))})
public EmploymentPeriod getEmploymentPeriod() { ... }
Since
1.0
See Also
AttributeOverride

Method Summary

Modifier and TypeMethod and Description
public AttributeOverride[]
value()

(Required) One or more field or property mapping overrides.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public AttributeOverride[] value()

(Required) One or more field or property mapping overrides.