4 min read
Why using Kotlin data classes as Entities is a bad idea
Kotlin data classes have been an awesome language addition—so good that they inspired Java 14’s record classes. Kotlin data classes are a great choice to create DTOs or Value Objects, but some of their features don’t go hand in hand with JPA entities. Let’s look at why it’s a bad idea to make JPA …
kotlin
jpa
ddd