阅读背景:

如何在多对多关系中使用hibernate和JPA删除孤立实体?

来源:互联网 

I want to delete orphan entities using hibernate and JPA on a many-to-many relationship but all that I found was this attribute the attribute. org.hibernate.annotations.CascadeType.DELETE_ORPHAN ( i.e. @Cascade(value={org.hibernate.annotations.CascadeType.DELETE_ORPHAN) ), which works only for one-to-many relationships.I want to delete orphan entities using hibernat




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: