I have a ManyToMany relation between ClassA and ClassB, defined in the following way:
public Set<ClassBBean> getMyBs()
public Set<ClassABean> getMyAs()
The problem is that when I try to delete a ClassB entity, it fails with the violation if an integrity constraint (child record found). If I put a CascadeType.ALL in the ClassB definition, it deletes the corresponding ClassA entity, even if it has other associations... What I want is to just delete de ClassB entity!
Can anyone help me? What am I missing? Thanks a lot in advance,