Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-12930 (
https://hibernate.atlassian.net/browse/HHH-12930?atlOrigin=eyJpIjoiODk1OD...
)
Re: non-primary embedded composite @ManyToOne mapping fails -> AnnotationException:
referencedColumnNames ... not mapped to a single property (
https://hibernate.atlassian.net/browse/HHH-12930?atlOrigin=eyJpIjoiODk1OD...
)
I just wasted time trying various permutations of this code to attempt to reproduce the
reported error. This was impossible. The given test code suffers the following:
* it’s completely wrong to use @NaturalId instead of @EmbeddedId and Hibernate reports
this problem immediately
* the test code depends on Springs non-JPA-standard default naming strategy (grrrr)
* @MappedSuperclass is meaningless on an @Embeddable
After fixing those problems the code ran perfectly. (It’s quite clear the reporter of this
issue never even tried to run the provided code, and did not understand the correct usage
of the annotations that occur in it.)
Please close this issue.
(
https://hibernate.atlassian.net/browse/HHH-12930#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-12930#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#100209- sha1:9aa9d1d )