If we have the following many-to-many association:
Removing the Post works just fine:
However, removing the Address throws a ConstraintViolationException:
and this is the stacktrace:
Replicating test case can be found in hibernate-core:
I have got the same issue.
Is there any quick (and not too dirty) workaround regarding this issue?
No update on this issue? I second @khalil question, what's the workaround?
Try using a DDL ON_DELETE cascade on the FK. This way, you'll never get that ConstraintViolationException.