ForeignKey definition of @CollectionTable isn't properly used

Description

A element collection mapping that uses the @CollectionTable annotation to map a custom ForeignKey definition isn't used properly.

Also see this stackoverflow post for further information: http://stackoverflow.com/questions/42505035/hibernate-point-foreign-key-to-secondary-table

Environment

None

Status

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

Affects versions

5.2.8

Priority

Major