Questions tagged «orphan-removal»

8
JPA orphanRemoval = true与ON DELETE CASCADE DML子句有何不同
我对JPA 2.0 orphanRemoval属性有些困惑。 我想我可以看到,当我使用JPA提供程序的数据库生成工具来创建基础数据库DDL时,需要具有ON DELETE CASCADE特定的关系。 但是,如果数据库存在并且已经具有ON DELETE CASCADEon关系,这是否不足以适当地级联删除?orphanRemoval另外还做什么? 干杯
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.