Jakarta Persistence (JPA) was designed for Java, creating friction with Kotlin's defaults like final classes, immutable properties, and null safety. To build reliable persistence layers, avoid data classes for entities, use regular open classes with mutable properties, configure the no-arg and all-open compiler plugins, stick
•15m read time• From blog.jetbrains.com
Table of contents
Entity class designMutabilityAccess typesNull safety and default valuesAnnotation placementIntelliJ IDEA to the rescue!About the authorSort: