October 2018
Intermediate to advanced
556 pages
15h 18m
English
Spring Data JDBC is a pretty new module in the Spring Data family. It aims to simplify the implementation of JDBC-based repositories. Spring Data repositories, including JDBC-based ones, are inspired by the repository described in Domain-Driven Design by Eric Evans. This means that we are recommended to have a repository per Aggregate Root. Spring Data JDBC features CRUD operations for simple aggregates, supporting @Query annotations and entity life cycle events.
To use Spring Data JDBC we have to modify the Book entity and apply the org.springframework.data.annotation.Id annotation to the id field. The repository requires an entity to have a unique identifier, ...
Read now
Unlock full access