This annotation overrides the following mapping information:
To override the settings of @Column defined in the mapped superclass and embedded class, apply the field or property of the entity class and embedded class in which the mapped superclass is inherited.
If @AttributeOverride is not specified, the column is mapped with the original mapping before override.
If @AttributeOverride is defined in the entity class of a unit that does not have an inheritance relationship, the operation is performed; however, the operation cannot be guaranteed.
The applicable targets are class, method, and field.
The following table lists the @AttributeOverride attributes.
Element name | Optional/Required | Element description |
---|---|---|
name | Required | This element specifies the name of the field or property in which the mapping is overridden. |
column | Required | This element specifies the @Column to be overridden. |
The details of attributes that are supported with Cosminexus JPA provider are as follows: