spring-boot-data-access
БесплатноБез исполняемых скриптовНе проверенOptimize JPA, Hibernate, and database interactions in Spring Boot. Use when implementing JPA entities, repositories, or database access in Spring Boot.
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Spring Boot Data Access
Priority: P0 (CRITICAL)
Configure JPA and Spring Data
- Read-Only: Default to
@Transactional(readOnly = true)on Services to optimize DB resources. - Projections: Use
Java Recordsfor Read-Only query results. Avoid fetching full@Entityobjects when not necessary. - Pagination: ALWAYS use
PageableandSlice(orPage) to prevent loading massive datasets. - Spring Data: Prefer
JpaRepositoryandQuery methods. Use@Querywith JPQL for complex logic. Use Flyway or Liquibase for migrations; never useddl-auto=createin production.
See implementation examples for repository projections, EntityGraph, and transactional patterns.
Optimize Queries and Transactions
- N+1 Problem: Fix
N+1selects usingJOIN FETCH(JPQL) or@EntityGraph. - Open-In-View: Set
spring.jpa.open-in-view=falseinapplication.yaml. - Bulk Operations: Use
@Modifyingwith@Queryfor updates/deletes to bypass EntityManager overhead. - Connection Pool: Configure
HikariCPwith explicitmaximum-pool-size. Tune Hikari pool-size based on expected concurrent queries.
Anti-Patterns
- No N+1 Selects: Use
JOIN FETCHor@EntityGraphinstead of lazy-loading in loops. - Entity Inflation: Don't use
@Data(Lombok) on Entities as it breaks Proxy andhashCode/equalsperformance. - Transactional Leak: Don't put
@Transactionalon publicRepositorymethods ifServicealready transactional. - Raw SQL: Avoid native SQL unless JPQL/Criteria API insufficient.
References
Установить spring-boot-data-access в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл spring-boot-data-access?
Optimize JPA, Hibernate, and database interactions in Spring Boot. Use when implementing JPA entities, repositories, or database access in Spring Boot.
Как установить скилл spring-boot-data-access?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spring-boot-data-access запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic