skills/spring-boot/spring-boot-data-access/SKILL.md
Optimize JPA, Hibernate, and database interactions in Spring Boot. Use when implementing JPA entities, repositories, or database access in Spring Boot.
npx skillsauth add hoangnguyen0403/agent-skills-standard spring-boot-data-accessInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@Transactional(readOnly = true) on Services to optimize DB resources.Java Records for Read-Only query results. Avoid fetching full @Entity objects when not necessary.Pageable and Slice (or Page) to prevent loading massive datasets.JpaRepository and Query methods. Use @Query with JPQL for complex logic. Use Flyway or Liquibase for migrations; never use ddl-auto=create in production.See implementation examples for repository projections, EntityGraph, and transactional patterns.
N+1 selects using JOIN FETCH (JPQL) or @EntityGraph.spring.jpa.open-in-view=false in application.yaml.@Modifying with @Query for updates/deletes to bypass EntityManager overhead.HikariCP with explicit maximum-pool-size. Tune Hikari pool-size based on expected concurrent queries.JOIN FETCH or @EntityGraph instead of lazy-loading in loops.@Data (Lombok) on Entities as it breaks Proxy and hashCode/equals performance.@Transactional on public Repository methods if Service already transactional.development
Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.
tools
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling.
development
Validate input, secure auth tokens, and prevent injection attacks in TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration.
development
Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.