Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15874 (
https://hibernate.atlassian.net/browse/HHH-15874?atlOrigin=eyJpIjoiZGZkY2...
)
Re: Can't access override property in sub-class when use kotlin data class (
https://hibernate.atlassian.net/browse/HHH-15874?atlOrigin=eyJpIjoiZGZkY2...
)
By using @get: you are telling the Kotlin Compiler to put the annotations on the Getter it
generates for the data class property instead of the field. Since Kotlin duplicates
fields, using field annotations is actually not a good idea. It’s so strange, Kotlin
prefers to model properties through getters/setters but still puts annotations on the
field. This simply is a recipe for disaster.
Anyway, I don’t know what changed in Hibernate 6 that changed the behavior, but we will
look into this when we can.
(
https://hibernate.atlassian.net/browse/HHH-15874#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15874#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:eb3f1fe )