{"enrichment":{"faq":[{"a":"jpa-patterns teaches you to identify and eliminate N+1 query issues through strategic fetch strategies and projections. The skill covers lazy vs. eager loading trade-offs, using @Query with JOIN FETCH to load related entities in a single query, and implementing DTO projections to fetch only needed columns. You'll learn when to apply each technique based on your access patterns.","q":"How does jpa-patterns help prevent N+1 query problems?"},{"a":"jpa-patterns covers OneToMany, ManyToOne, ManyToMany, and OneToOne relationships with practical entity design patterns. You'll learn how to model bidirectional vs. unidirectional relationships, configure cascade types appropriately, and use @JoinColumn and @JoinTable annotations correctly. The skill emphasizes designing relationships that support efficient queries and prevent common pitfalls.","q":"What entity design and JPA relationships does jpa-patterns cover?"},{"a":"jpa-patterns teaches Spring Boot transaction management using @Transactional with proper propagation and isolation levels. For auditing, you'll learn to use @CreatedDate, @LastModifiedDate, and @EntityListeners to automatically track entity changes. The skill covers setting up AuditorAware beans to capture user information and configuring audit tables for compliance.","q":"How do I configure transaction management and auditing in jpa-patterns?"},{"a":"jpa-patterns covers Hibernate performance optimization including connection pooling with HikariCP, composite index design for query acceleration, and second-level caching strategies. You'll learn batch insert operations with saveAll, lazy loading configuration, and monitoring query execution. The skill helps you identify bottlenecks and apply targeted tuning.","q":"What Hibernate performance tuning techniques are included?"},{"a":"Yes. jpa-patterns covers implementing custom repository methods using Spring Data's @Query annotation with both JPQL and native SQL. You'll learn DTO projections to fetch only required fields, reducing memory overhead and network traffic. The skill includes examples of interface-based and class-based projections for flexible data access patterns.","q":"Can jpa-patterns teach custom repository methods and projections?"},{"a":"jpa-patterns includes database migration setup using Flyway with Spring Boot, covering versioning strategies and rollback patterns. For testing, you'll learn to set up test data access layers, use embedded databases like H2, and write integration tests for repositories. The skill emphasizes reproducible test environments and data consistency.","q":"Does jpa-patterns include database migrations and testing best practices?"}],"shadow_tags":["orm-framework","data-persistence","query-optimization","relationship-mapping","performance-tuning","transaction-control","database-migration","caching-strategy"],"summary_rewrite":"Master JPA entity modeling, repository implementation, and performance tuning for Spring Boot applications. Learn to configure relationships, prevent N+1 query issues through fetch strategies and projections, set up transactional boundaries, and optimize database connections with HikariCP."},"files":[{"bytes":4718,"path":"skills/jpa-patterns/SKILL.md","sha256":"96d4ed29e4cf2d8aac35f420114128ff27fd670f3c3849e73ac174a9630212e5","url":"https://skillfed.io/files/xu-xiang/everything-claude-code-zh/jpa-patterns/7bb78246/SKILL.md"}],"id":"xu-xiang/everything-claude-code-zh/jpa-patterns","links":{"html":"https://skillfed.io/xu-xiang/everything-claude-code-zh/jpa-patterns","md":"https://skillfed.io/xu-xiang/everything-claude-code-zh/jpa-patterns.md","repo":"https://github.com/xu-xiang/everything-claude-code-zh"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":298,"language":"JavaScript","last_updated":"2026-03-05","license":"MIT","name":"jpa-patterns","publisher":"xu-xiang","stars":1767},"relations":{"similar":[{"id":"affaan-m/ECC/jpa-patterns"},{"id":"decebals/claude-code-java/jpa-patterns"},{"id":"xu-xiang/everything-claude-code-zh/springboot-patterns"},{"id":"affaan-m/ECC/springboot-patterns"},{"id":"manutej/luxor-claude-marketplace/spring-boot-development"},{"id":"personamanagmentlayer/pcl/spring-boot-expert"},{"id":"pluginagentmarketplace/custom-plugin-java/java-jpa-hibernate"},{"id":"bobmatnyc/claude-mpm-skills/spring-boot"},{"id":"giuseppe-trisciuoglio/developer-kit/spring-data-jpa"},{"id":"dawiddutoit/custom-claude/java-spring-service"}]},"slug":{"owner":"xu-xiang","repo":"everything-claude-code-zh","skill":"jpa-patterns"},"version":"7bb78246"}
