Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-16274 (
https://hibernate.atlassian.net/browse/HHH-16274?atlOrigin=eyJpIjoiNWMyYW...
)
Re: Incorrect binding @OneToMany with multiple join columns (
https://hibernate.atlassian.net/browse/HHH-16274?atlOrigin=eyJpIjoiNWMyYW...
)
Hello Akshaya Gawand (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6409b5d...
) , thank you very much for the reproducers.
Looks like the error in Hibernate 6 is caused by the @Id annotations on the
InProcessRefSeqNoId class that is used as @IdClass that cause the foreign key constraint
to be generated with a wrong order of columns. Simply removing those annotations, which by
the way are not needed since it’s already an @IdClass so they have no effect, should solve
your problem.
Let me know if that works for you so I can close the issue.
(
https://hibernate.atlassian.net/browse/HHH-16274#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16274#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100219- sha1:0c2c9f2 )