Standardizes database schema design, JPA entity mapping, and QueryDSL implementation for robust Spring Boot backends.
This skill provides a comprehensive framework for building database layers in Spring Boot applications following high-performance standards. It guides Claude in creating JPA entities with optimized lazy loading, implementing the Repository Support pattern for complex QueryDSL queries, and managing transactional boundaries effectively. By utilizing modern Java 17+ features like Records for DTO projections and ensuring strict repository interface separation, this skill helps maintain architectural consistency and prevents common ORM pitfalls like N+1 problems or implementation leaks.
主要功能
01Explicit @Transactional management for read/write operation optimization
02Standardized JPA entity mapping with optimized lazy loading (LAZY)
03MariaDB and MySQL compatible database design patterns
04Type-safe DTO projections using Java Records and @QueryProjection
05QueryDSL Repository Support pattern for complex dynamic queries
060 GitHub stars
使用场景
01Implementing type-safe, maintainable search queries using QueryDSL and custom repository interfaces
02Generating complex JPA entities with optimized relationship mapping and static factory methods
03Refactoring service layers to ensure correct transaction propagation and read-only optimizations