spring-data-jpa
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Define JPA entities with annotations (@Entity, @Id, @Column)
- Create Spring Data repositories (JpaRepository, CrudRepository)
- Use derived query methods, @Query with JPQL/native SQL, and Specifications
- Configure data sources, Hibernate dialect, and transaction management
- Handle pagination, sorting, auditing, and entity graphs
How to use this skill
Workflow
- Define entities with JPA annotations and relationship mappings
- Create repositories extending JpaRepository with derived or custom query methods
- Configure the data source in
application.ymlorapplication.properties - Use services to encapsulate business logic with proper transaction boundaries