repository extends the CrudRepository to provide additional methods to retrieve entities using the pagination and sorting abstraction in Spring Data JPA?
- CrudRepository
- JpaRepository
- JpaSortingRepository
- PagingAndSortingRepository
The JpaRepository in Spring Data JPA extends CrudRepository and provides additional methods for retrieving entities with pagination and sorting. It's a common choice when working with Spring Data JPA for tasks involving querying and managing data. CrudRepository provides basic CRUD operations, while PagingAndSortingRepository is an interface that extends CrudRepository to include pagination and sorting capabilities. JpaSortingRepository is not a standard Spring Data JPA repository interface.
Loading...
Related Quiz
- What is the primary role of the UserDetailsService in Spring Security?
- What is the primary role of Spring Cloud in developing microservices?
- What is the significance of the @Transactional annotation in Spring Data JPA?
- In Spring Security, the method loadUserByUsername is defined in the _____ interface.
- In Spring Security, a custom access decision voter can be created to use with method security by implementing the _____ interface.