Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 eclipselink 中使用 ON UPDATE CASCADE 创建外键。谁能解释如何创建这样的外键
这个功能在 eclipselink 中可用吗?
斯里尼
当您想要级联更新时,可以使用这些属性cascade = CascadeType.ALL或cascade = CascadeType.MERGE 。见样品;
@Entity class Employee { @OneToOne(cascade=CascadeType.ALL) private Address address; }