[hibernate-issues] [JIRA] (HHH-11605) OneToMany - extend CollectionKey with PK of the "One" side.

Artem K. (JIRA) jira at hibernate.atlassian.net
Mon May 25 15:42:11 EDT 2020


Artem K. ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A72469c7a-4e0e-4a68-87c9-0b374466cdac ) *commented* on HHH-11605 ( https://hibernate.atlassian.net/browse/HHH-11605?atlOrigin=eyJpIjoiNzY3Y2Y2N2Q1MTAxNGZmNmFhZmJjZWQ0ZGZhMzE4NmEiLCJwIjoiaiJ9 )

Re: OneToMany - extend CollectionKey with PK of the "One" side. ( https://hibernate.atlassian.net/browse/HHH-11605?atlOrigin=eyJpIjoiNzY3Y2Y2N2Q1MTAxNGZmNmFhZmJjZWQ0ZGZhMzE4NmEiLCJwIjoiaiJ9 )

I ran into the same issue while mapping a legacy database whose structure I cannot change with Hibernate 5.4. Before stumbling upon this issue, I debugged the code and arrived at the same conclusion as Matthew Jacobs. If mapping is non-insertable and non-updatable, there does not seem to be a reason to throw an error. Would be great if this can be considered for change in the next releases.

( https://hibernate.atlassian.net/browse/HHH-11605#add-comment?atlOrigin=eyJpIjoiNzY3Y2Y2N2Q1MTAxNGZmNmFhZmJjZWQ0ZGZhMzE4NmEiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-11605#add-comment?atlOrigin=eyJpIjoiNzY3Y2Y2N2Q1MTAxNGZmNmFhZmJjZWQ0ZGZhMzE4NmEiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100127- sha1:97b7618 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200525/5d445f77/attachment.html 


More information about the hibernate-issues mailing list