Zed (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f1646a...
) *commented* on HHH-15874 (
https://hibernate.atlassian.net/browse/HHH-15874?atlOrigin=eyJpIjoiY2M1NT...
)
Re: Can't access override property in sub-class when use kotlin data class (
https://hibernate.atlassian.net/browse/HHH-15874?atlOrigin=eyJpIjoiY2M1NT...
)
@Jan Schumacher I have a workaound, but it almost not the typical usage of data class.
First, change super class, move the consturctor field to class properties, and make it
mutable.
Before:
abstract class Order( @Id open val oid: String)
After:
abstract class Order {
@Id var oid: String
}
And child class remove override fields.
Before:
data class PlaneOrder(
val foo: String,
@Id
override val oid: String,
): Order(oid)
After:
data class PlaneOrder(
val foo: String
): Order()
(
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 )