Brett Meyer edited a comment on Sub-task HHH-6287

Binder#bindUniqueConstraints assumes that the @UniqueConstraint table names are within the EntityBinding's primary and secondary tables, when @CollectionTable, @JoinTable, etc. are not.

Easy test case: change org.hibernate.test.annotations.collectionelement.Boy#getScorePerNickName's @CollectionTable to

@CollectionTable(name = "ScorePerNickName", joinColumns = @JoinColumn(name = "BoyId"),
			uniqueConstraints = @UniqueConstraint(columnNames = "BoyId"))

Breakpoint on Binder#bindUniqueConstraints, then run org.hibernate.test.annotations.collectionelement.CollectionElementTest

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