Spring Data JPA
Spring Data JPA
Spring Data JPA, part of the larger Spring Data family, makes it easy to easily implement
JPA-based (Java Persistence API) repositories. It makes it easier to build Spring-powered
applications that use data access technologies.
Implementing a data access layer for an application can be quite cumbersome. Too
much boilerplate code has to be written to execute the simplest queries. Add things like
pagination, auditing, and other often-needed options, and you end up lost.
Spring Data JPA aims to significantly improve the implementation of data access layers
by reducing the effort to the amount that’s actually needed. As a developer you write
your repository interfaces using any number of techniques, and Spring will wire it up for
you automatically. You can even use custom finders or query by example and Spring will
write the query for you!
Also check out the supported versions of Spring Data JPA in relation to Spring Boot.
Features
Getting Started: Sophisticated support to build repositories based on Spring and JPA
Various Query Methods: Pagination support, dynamic query execution, ability to
integrate custom data access code
Validation of @Query annotated queries at bootstrap time