@ManyToMany and @JoinTable adds duplicated records in the database.

Description

The following setup:

and this test-case:

Here's the repository with reproduceable test-case: https://github.com/ptahchiev/hibernate-test-case-templates/tree/HHH-6776

Environment

None

Status

Assignee

Unassigned

Reporter

Petar Tahchiev

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure