Piotr Jagielski commented on Bug HHH-8011

It indeed looks like working as designed. I found a forum thread where Gavin King confirmed this: https://forum.hibernate.org/viewtopic.php?f=1&t=924496. The reason he gave is that list semantics permit an object to belong twice to the list. I verified that changing the collection type to set results in expected primary key generation consisting of entity_id and relationship_id. Please close this issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira