jjzjj

java - 双向 JPA OneToMany/ManyToOne 关联中的 “the inverse side of the association” 是什么?

在@OneToManyJPAannotationreference的示例部分:示例1-59@OneToMany-具有泛型的客户类@EntitypublicclassCustomerimplementsSerializable{...@OneToMany(cascade=ALL,mappedBy="customer")publicSetgetOrders(){returnorders;}...}示例1-60@ManyToOne-带有泛型的订单类@EntitypublicclassOrderimplementsSerializable{...@ManyToOne@JoinColumn(na

java - 双向 JPA OneToMany/ManyToOne 关联中的 “the inverse side of the association” 是什么?

在@OneToManyJPAannotationreference的示例部分:示例1-59@OneToMany-具有泛型的客户类@EntitypublicclassCustomerimplementsSerializable{...@OneToMany(cascade=ALL,mappedBy="customer")publicSetgetOrders(){returnorders;}...}示例1-60@ManyToOne-带有泛型的订单类@EntitypublicclassOrderimplementsSerializable{...@ManyToOne@JoinColumn(na