https://kotlinlang.org logo
Title
u

user

07/22/2022, 10:01 PM
Composite-id class must implement Serializable: io.digiwave.entities.StoreEntity I try to use Hibernate in Quarkus with Kotlin. The entity definition looks as follows: @Entity open class StoreEntity( ) : PanacheEntity() { @EmbeddedId lateinit var userId: UserId lateinit var password: String var createdAt: Long = 0 } and the composite key: @Embeddable open class UserId( ) : Serializable { lateinit var id: String } Unfortunately the compiler complains: Caused by: org.hibernate.MappingException: Composite-id class must implement Serializable:...