Chris Cobham (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *commented* on HHH-16698 (
https://hibernate.atlassian.net/browse/HHH-16698?atlOrigin=eyJpIjoiYmVkNj...
)
Re: @Any Polymorphic Association Ignores @Column Insertable/Updatable Attributes (
https://hibernate.atlassian.net/browse/HHH-16698?atlOrigin=eyJpIjoiYmVkNj...
)
@Marco Belladelli Happy to help. I’ll get a few test cases added and create a PR.
For context, in our specific case we’re using @Any as an alternative to a JOINED
inheritance mapping strategy. This allowed us to query strictly on the parent table
without a UNION across all children but still retain child table-specific foreign
key/non-null constraints that we lose with a SINGLE_TABLE strategy. The @Id field is used
as the @JoinColumn on the parent entity's @Any reference to the child, which is where
we get our mapping exceptions as of 6.2.0.
(
https://hibernate.atlassian.net/browse/HHH-16698#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16698#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#100225- sha1:62413c2 )