@AttributeOverrides annotation is used in hibernate/JPA to rename the column(s) name of the embadable class while it is being embedded in other class. Suppose A class is embedded in class B, then if A entity contains the column name of any property "phone", then B entity can override the column name to "mobileNumber". So, in the table, column name will be "mobileNumber". package entity; import java.io. Serializable ; import javax.persistence.Column; import javax.persistence.Embeddable; @Embeddable public class ContactKey implements Serializable { private int roll; private String sem; private String branch; public int getRoll () { return roll; } public...
Future driven solutions.