š¦ Package |
org.springframework.data.repository |
org.springframework.data.jpa.repository |
š Inheritance |
Base interface for CRUD operations |
Extends PagingAndSortingRepository & CrudRepository
|
šØ Basic CRUD (save, findById, delete) |
ā
Yes |
ā
Yes |
š Pagination & Sorting |
ā (Not directly) |
ā
Built-in via PagingAndSortingRepository
|
š JPA-specific Features |
ā No JPA features |
ā
Yes (e.g., flush() , saveAllAndFlush() ) |
š§© Batch operations |
ā No |
ā
Yes (deleteInBatch() , saveAll() ) |
šÆ Best For |
Simple CRUD operations |
Full-featured JPA data handling |