Spring Data JPA entity design, repository patterns, query methods, JPQL, Flyway/Liquibase migrations, and N+1 avoidance. Apply on Spring Boot projects with spring-boot-starter-data-jpa. Pairs with spring-boot-plugin:spring-conventions and java-foundation:java-conventions.
Use this skill to:
- Design JPA entities with proper annotations, ID strategy, and lazy loading.
- Write JpaRepository interfaces with derived query methods and JPQL @Query.
- Avoid N+1 queries using @EntityGraph or JOIN FETCH.
- Manage schema evolution with Flyway or Liquibase.
- Project query results with Spring Data Projections and DTOs.
Do NOT use this skill for:
- Service or controller patterns — …