Introducing Spring Data JPA
Spring Data JPA is a part of Spring Data. Spring Data is much bigger than Spring Data JPA, so we will start by explaining it. Spring Data, as Spring-based programming, provides us with mechanisms for misc underlying data storage.
Thanks to Spring Data, we can utilize different data storage options. We can access different relational or non-relational databases. In this book, we will be focusing on a MySQL database.As a parent, Spring contains multiple sub-projects; one of them is Spring Data JPA.
What does Spring Data provide?
Let's highlight some of the most important features that Spring Data provides:
- Repository and custom object-mapping abstractions
- Derivation of dynamic queries from the repository method names
- Auditing
- Custom repositories
- Ease of integration and configuration
- Ease of use with Spring MVC controllers
Which Spring Data modules do we need?
For us, the most important modules are the following:
- Spring Data Commons, core components for Spring Data
- Spring Data...