使用
@AttributeOverride,这是一个示例
@Embeddable public class Address { protected String street; protected String city; protected String state; @Embedded protected Zippre zippre;}@Embeddable public class Zippre { protected String zip; protected String plusFour;}@Entity public class Customer { @Id protected Integer id; protected String name; @AttributeOverrides({ @AttributeOverride(name="state", column=@Column(name="ADDR_STATE")), @AttributeOverride(name="zippre.zip", column=@Column(name="ADDR_ZIP")) }) @Embedded protected Address address; ...}在您的情况下,它看起来像这样
@Entitypublic class Event { @Embedded @AttributeOverride(name="pre", column=@Column(name="manager_pre")) public Person manager; @Embedded @AttributeOverride(name="pre", column=@Column(name="operator_pre")) public Person operator; //...}


