This annotation overrides the settings used in the ManyToOne relationship or the OneToOne relationship specified in a mapped superclass and an embedded class.
When @AssociationOverride is not specified, the external key column is mapped in the same way as the original mapping.
The applicable targets are class, method, and field.
The following table lists the elements of @AssociationOverride:
Element name | Optional/Required | Element description |
---|---|---|
name | Required | This element specifies the name of the field or property having the related mapping that is to be overridden. |
joinColumns | Required | This element specifies an array of @JoinColumn. |
The details of attributes that are supported with Cosminexus JPA provider are as follows: