-
Easily implement JPA-based repositories using Spring Data JPA. Learn about the Spring Data Commons JPA for object-relational mapping, querying with Spring Data, and more.
Coding to databasesâwhich often involves the use of boilerplate code that's difficult to maintain and debugâcan be tedious work. Upgrading applications to a different kind of data storage is similarly challenging, as it usually involves massive code rewrites. Spring Data addresses these issues by abstracting data store interactions into a common repository API and eliminating boilerplate code.
In this course, learn how to easily implement JPA-based repositories using Spring Data JPA. Mary Ellen Bowman describes the Spring Data umbrella project, and helps you understand JPA for object-relational mapping. She also covers querying, and dives into other Spring Data Commons features such as QueryDSL and auditing.
Overview
Syllabus
-
Introduction
- Welcome
- What you should know before watching
- How to use the exercise files
- Spring Data Commons
- Logical model vs. physical model
- Brief history of the Java Persistence API
- Map a database table to a Java class
- Map multiple tables to Java classes
- Java Persistence query language
- JPA without Spring Data
- Spring Data repositories interfaces
- CrudRepository interface for entities
- JPA Repository
- Property expression query methods
- Query method clauses and expressions
- @Query query methods
- Paging and sorting
- QueryByExample
- Optional query response
- Spring Data MongoDB example
- Spring Data JDBC example
- Spring Data reactive repository example
- Other Spring Data datasource solutions
- Spring Data REST
- QueryDSL Spring data extension
- Auditing
- Read-Only repository pattern
- Next steps