Delete doesn't work when many-to-many uses non-primary key for join table

Description

I will provide a PR for this. Essentially, the deleter uses the identifier of the owner entity rather than the key columns of the collection persister. A delete of the owner entity will generate a wrong SQL for deleting the join table entries. I will also look into the updaters, probably it has the same issue.

Environment

None

Assignee

Christian Beikov

Reporter

Christian Beikov

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure