@AssociativeOverrides is used to override mappings of multiple relationship properties or fields. To override a mapping defined by a mapped superclass or a relationship mapping from an embeddable class, @AssociationOverride is applied to the entity class.
package com.logicbig.example;
import javax.persistence.*;
@Entity public class EntityA { @Id @GeneratedValue private int id;