JpaRepository is a Spring Data repository contract for applications using a JPA implementation, such as Hibernate. Define an application repository interface that extends it to use operations specific to JPA. section 14.2
Choose a repository contract according to the operations and technology your application needs:
- Use CrudRepository for CRUD operations, or PagingAndSortingRepository when you also need paging and sorting. section 14.2
- Use JpaRepository when working with Spring Data JPA and needing operations for a JPA implementation. section 14.2
A JPA repository
An application’s AccountRepository can extend JpaRepository when its persistence uses a JPA implementation such as Hibernate. section 14.2
Figure 14.10 Different Spring Data modules might provide other, more particular contracts. For example, if you use an ORM framework such as Hibernate (which implements the JPA) with Spring Data, you can extend the JpaRepository interface, which is a more particular contract that provides operations applicable only when using a JPA implementation, such as Hibernate.

See how JpaRepository fits among Spring Data’s more technology-specific repository contracts. section 14.2

