什么是Hibernate中使用的AttributeOverride注释

3 java annotations hibernate jpa

@Entity
class User {
@EmbeddedId
@AttributeOverride(name="firstName", column=@Column(name="fld_firstname")
UserId id;
Integer age;
}
@Embeddable
class UserId implements Serializable {
String firstName;
String lastName;
}
Run Code Online (Sandbox Code Playgroud)

我想知道AttributeOverride的用途是什么.这是来自hibernate在线文档的代码

xxt*_*oxx 7

它用于为表中的列指定另一个名称,而不是嵌入类中指定的名称.

例如 AttributeOverride来