Patrice CAVEZAN (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63d0ef2...
) *commented* on HHH-16969 (
https://hibernate.atlassian.net/browse/HHH-16969?atlOrigin=eyJpIjoiZWM2ZD...
)
Re: An entity with a parent <-> child relationship on itself with a natural id does
not load using it natural id (
https://hibernate.atlassian.net/browse/HHH-16969?atlOrigin=eyJpIjoiZWM2ZD...
)
I tried your test case template and it works like a charm !
So i wondered why it was not working on my repository, then regenerating same project as
java project showed me it was working in JAVA.
Finally, I found that the problem came from Kotlin and a missing plugin useful for that
usecase: all-open.
https://stackoverflow.com/questions/37733629/kotlin-with-jpa-hibernate-no...
As soon as I configured it, I worked like a charm.
https://github.com/pcavezzan/parent-child-relationship-hibernate-6/commit...
Sorry to have bothered you with a none problem. I’m closing this issue.
(
https://hibernate.atlassian.net/browse/HHH-16969#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16969#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#100232- sha1:4329f54 )