Skip to content
Back to skills

Spring Boot Data Access

ASecurity

Use Spring Data JPA when the application is primarily aggregate-oriented CRUD and benefits from entity mapping, repositories, and a unit-of-work model. It is the default fit for the conventions in this skill: prefer `JpaRepository` and derived query methods, use JPQL or `@EntityGraph` for complex access, and return record projections when a full entity is unnecessary. Choose jOOQ when the workload is SQL-heavy and needs precise vendor-specific SQL, complex reporting, or compile-time SQL shape...

  • 549 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentsqlspringapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill spring-boot-data-access --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spring Boot Data Access?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spring Boot Data Access
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-spring-boot-data-access-agent-skills-standard/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-spring-boot-data-access-agent-skills-standard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Use Spring Data JPA when the application is primarily aggregate-oriented CRUD and benefits from entity mapping, repositories, and a unit-of-work model. It is the default fit for the conventions in this skill: prefer `JpaRepository` and derived query methods, use JPQL or `@EntityGraph` for complex access, and return record projections when a full entity is unnecessary.

Choose jOOQ when the workload is SQL-heavy and needs precise vendor-specific SQL, complex reporting, or compile-time SQL shape. It gives more query control, but introduces a different access style and does not remove the need for service transaction boundaries and typed API DTOs. A mixed approach can be valid when the boundary is explicit; do not expose persistence types through controllers.

Whichever tool you choose, keep migrations in Flyway or Liquibase and never use `ddl-auto=create` in production. Set `spring.jpa.open-in-view=false`, use `@Transactional(readOnly = true)` for read services, paginate with `Pageable`/`Slice`/`Page`, and inspect queries for N+1 problems. Fix N+1 with `JOIN FETCH` or `@EntityGraph`; avoid Lombok `@Data` on entities because of proxy and equality performance issues.


Files in this skill

  • eval-1.baseline.md799 B
  • eval-1.with-skill.md1.2 KB
  • eval-2.baseline.md727 B
  • eval-2.with-skill.md1.1 KB
  • eval-3.baseline.md686 B
  • eval-3.with-skill.md1.2 KB
  • trigger-1.md127 B
  • trigger-2.md107 B
  • trigger-3.md101 B
  • trigger-4.md118 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…