Оптимизация JPA и Hibernate в Spring
data
jpa-patterns is a Claude Code skill that addresses the most common JPA/Hibernate pitfalls in Spring applications — N+1 queries, LazyInitializationException, fetch strategy selection, and transaction management. It provides concrete code patterns for JOIN FETCH, @EntityGraph, and Hibernate @BatchSize, alongside DTO projections that safely avoid lazy-loading errors outside a session. Developers dealing with slow database performance, misconfigured entity relationships, or concurrent-modification bugs will find ready-to-use solutions here. The skill also covers optimistic locking with @Version, read-only transactions to eliminate unnecessary dirty checking, and SQL logging configuration to detect runaway query counts early.
- #jpa
- #hibernate
- #java
- #database
- #performance-optimization