Refer to the exhibit.
Which statement is true? (Choose the best answer.)
Refer to the exhibit.
Which statement is true? (Choose the best answer.)
The given interface extends the CrudRepository interface provided by Spring Data. This follows the pattern used by Spring Data JPA, which can automatically generate the implementation of this repository. This eliminates the need for manually creating a class that implements the interface, as Spring Data JPA will handle it, enabling CRUD operations and other functionality to be used directly with instances of CustomerRepository.
Correct. I will quote from the VMWare course on Spring Boot: Spring Data (JPA) will implement the following: - Scans for interface extending Spring Data Common Repository<T, K> - CRUD methods auto-generate if using CrudRepository<T, K> - Paging, custom queries and sorting supported - Variations exists for most Spring Data sub-projects.