java-jpa-hibernate — Claude Code skill: what it does, how to install
Guides JPA entity mapping, query tuning, and transaction controls for Java persistence layers in production.
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-jpa-hibernate -a claude-codeWhat java-jpa-hibernate does
This skill guides assistants through entity modeling, Spring Data repositories, and Hibernate tuning. It focuses on targeted relational engines: postgresql, mysql, oracle, and h2. You get clear patterns for audit listeners, lifecycle callbacks, and locking strategies.
The included guidance tackles query bottlenecks. It outlines when to apply JOIN FETCH, dynamic @EntityGraph declarations, batch fetching with @BatchSize, or lightweight DTO projections. Configuration recipes cover HikariCP connection limits and second-level cache controls.
Leaving open-in-view enabled masks architectural defects until database traffic spikes unexpectedly during response rendering.
What it helps with
- eliminate N+1 select bottlenecks in Spring Data queries
- map bidirectional entity relationships with audit fields
- configure JDBC batching and HikariCP connection pools
- apply optimistic or pessimistic locking to transactions
Example prompts for the agent
- Refactor this repository query to use a DTO projection and prevent LazyInitializationException.
- Configure batch insert properties and connection pool limits for PostgreSQL in application.yml.
- Add an @EntityGraph to fetch order items and avoid secondary queries.
How to install java-jpa-hibernate
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-jpa-hibernate -a claude-code2Manually: put the files in place
~/.claude/skills/java-jpa-hibernate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/java-jpa-hibernate/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-jpa-hibernate -a codex2Manually: put the files in place
.agents/skills/java-jpa-hibernate/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-jpa-hibernate -a cursor2Manually: put the files in place
.cursor/skills/java-jpa-hibernate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pluginagentmarketplace/custom-plugin-java java-jpa-hibernate2Manually: put the files in place
.github/skills/java-jpa-hibernate/SKILL.md1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-jpa-hibernate -a gemini-cli2Platform CLI
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-java --path skills/java-jpa-hibernateManually: put the files in place
.devin/skills/java-jpa-hibernate/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-jpa-hibernate -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about java-jpa-hibernate
How to install java-jpa-hibernate in Claude Code?
Run npx skills add pluginagentmarketplace/custom-plugin-java --skill java-jpa-hibernate -a claude-code in your terminal. The skill file is placed at ~/.claude/skills/java-jpa-hibernate/SKILL.md.
What databases does this skill target?
Validation rules limit the target database parameter to postgresql, mysql, oracle, and h2.
How does the skill address N+1 query problems?
It provides specific patterns using JOIN FETCH, @EntityGraph, collection @BatchSize, or DTO projections depending on read requirements.