@ManyToOne(fetch = LAZY)
@JoinColumn(name = COL_GROUP_ID, nullable = false, insertable = false, updatable = false, referencedColumnName = COL_ID)
@OnDelete(action = CASCADE)
@Cascade(value = DELETE_ORPHAN)
private Group group;
如何在多对一关系上强制执行孤立删除,上面的代码片段在 Hibernate 3.3.x 中为我们工作,但在迁移到 3.6.5.Final 后它在代码中显示为警告。是否有类似 orphanRemoval = true 的等效标志应用于@OneToMany 符号?