kotlin-backend-jpa-entity-mapping
Installation
SKILL.md
JPA Entity Mapping for Kotlin
Kotlin's data class is natural for DTOs but dangerous for JPA entities. Hibernate relies on
identity semantics that data class breaks: equals/hashCode over all fields corrupts
Set/Map membership after state changes, and auto-generated copy() creates detached
duplicates of managed entities.
This skill teaches correct entity design, identity strategies, and uniqueness constraints for Kotlin + Spring Data JPA projects.
Source
Imported from Kotlin/kotlin-agent-skills,
original skill:
skills/kotlin-backend-jpa-entity-mapping.