阅读背景:

JPA @ManyToMany - 无法删除或更新父行:外键约束失败

来源:互联网 

I have the Entities:

我有实体:

@Entity
public class User {

    @ManyToMany(cascade=CascadeType.PERSIST, fetch=FetchType.EAGER)
    private List<Role> roles = new ArrayList<Role>();
@Entity
public 



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

分享到: