jpa级联
@OneToMany(fetch = FetchType.LAZY,cascade = arrayOf(CascadeType.ALL))
@JoinColumn(name = "xxxx")
对应项里面似乎不用再做处理了
在做级联删除的时候应该@onetomany里面的orphanRemoval的属性应该为true
@OneToMany(cascade = arrayOf(CascadeType.ALL), fetch = FetchType.LAZY,orphanRemoval = true)