Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

JPA entities in Kotlin: identity, constraints and pitfalls v1.0.0

Use this resource to design correct JPA and Hibernate entities in Kotlin

New

  • 428 downloads
  • 193 likes
  • 227 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install jpa-entity-mapping-kotlin

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent writes or reviews JPA entities: regular classes instead of data classes, ID-based identity, uniqueness constraints at the database and application level, and loading rules. You get a mapping that avoids common ORM pitfalls.

Mostly picked by

Updated November 2, 2026

Card for the “JPA entities in Kotlin: identity, constraints and pitfalls” skill

Details

Generates with
Your agent's model
Licence
Apache-2.0

Similar resources

View all

What you get

  • SKILL.md: entity design and identity rules
  • SKILL.md: uniqueness constraints, with wrong then corrected examples
  • SKILL.md: loading rules and Kotlin-specific pitfalls

Good fit for

  • You see N+1 or LazyInitializationException errors in a Spring Data JPA service
  • An entity is declared as a data class and breaks inside sets

Not for

    Tags

    • jpa
    • kotlin
    • hibernate
    • entities

    About

    You say

    “Review this Order entity in Kotlin and fix its equals, hashCode and uniqueness constraints.”

    Card for the “JPA entities in Kotlin: identity, constraints and pitfalls” skill

    Skill published by kotlin under the Apache-2.0 license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to design correct JPA and Hibernate entities in Kotlin
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE11.3 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md7.4 KB

    Origin and licence

    Listed unmodified

    Author
    kotlin
    Source
    github.com/kotlin/kotlin-agent-skills/tree/c2f90697bf71966a117a13340d5fff787f004140/skills/kotlin-backend-jpa-entity-mapping
    Licence
    Apache-2.0

    Notice

    « kotlin-backend-jpa-entity-mapping » (kotlin, Apache-2.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.