Data model in attached test case seems invalid. Both, entity UserGroupMember and property UserGroup#userGroupMembers, map to the same table user_group_member. Just rename one of them and you will receive a proper integrity constraint violation error. There is no cascading in this example.
|