Skip to content

Patrones JPA y Hibernate

Guides Spring Boot data-access work: entity design, N+1 prevention, transactions, pagination, and HikariCP tuning.

Repository
affaan-m/ECC
Stars
295,127
Licence
MIT
Files
1 file

What it does

This skill gives an AI agent a checklist of JPA/Hibernate best practices for Spring Boot projects. Once installed, when you ask about modeling database tables, relationships, slow queries, transactions, auditing, pagination, or connection pool settings, the agent follows the patterns in the file, such as avoiding N+1 queries with join fetch, using DTO projections for reads, and relying on Flyway or Liquibase instead of Hibernate auto DDL. The guidance is written in Spanish and includes Java code examples.

Great for

  • Java developers building or maintaining Spring Boot services that use JPA or Hibernate
  • Teams reviewing entity mappings or repository code for performance problems
  • Developers who want a consistent reference for transactions, pagination, and connection pool configuration

Skip it if

  • Projects that do not use JPA/Hibernate, such as Node.js, Python, or plain JDBC codebases, where the patterns do not apply
  • Production database changes applied blindly from generated code, since the examples are generic and must be checked against your schema and load, and the skill does not verify them

Try asking

  • “Diseña una entidad JPA para un catálogo de productos con relaciones a categorías”
  • “Revisa mi repositorio de Spring Boot para detectar problemas de N+1 y propón fetch joins”
  • “Configura paginación por cursor para un listado de pedidos con JPA”
  • “Ajusta la configuración de HikariCP para una aplicación PostgreSQL con carga alta”
Step-by-step guide: how to use Patrones JPA y HibernateInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    jpa-patterns.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip jpa-patterns.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip jpa-patterns.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Give the agent your actual entity classes and repository interfaces so it applies the patterns to your code rather than generic examples.
  • Ask it to show the SQL generated (enable Hibernate SQL logging as the skill suggests) and verify it against your real query plans before deploying.
  • Treat the connection pool numbers (maximum-pool-size=20, etc.) as starting points and tune them to your database and workload.

What's inside

  • SKILL.md

Redistributed unmodified from affaan-m/ECC under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.