liveBook · Manning

Spring Data JDBC

As explained in Spring Start Here, Second Edition

Spring Data JDBC is a Spring Data module that provides repository-based access to relational databases through JDBC.

Spring Data JDBC is the Spring Data module for connecting an application to a database directly through JDBC. It is an independent module, added through its own dependency—not a generic Spring Data dependency. section 14.2

Figure 14.5 If the app uses JDBC, it only needs the part of the Spring Data project that manages persistence through JDBC. The Spring Data module that manages the persistence through JDBC is called Spring Data JDBC. You add this Spring Data module to your app through its own dependency.

This diagram shows Spring Data JDBC as the part of the Spring Data project selected for an application using JDBC. section 14.2

Repositories define an application's persistence capabilities by extending Spring Data contracts. For CRUD operations, a repository can extend CrudRepository; Spring adds an implementing bean to the application context for injection. section 14.2

How Spring Start Here, Second Edition covers it

How deep it goes
Defines the module and sketches repository contracts, but does not detail JDBC operations or implementation internals.
Examples
Illustrates selecting the JDBC module and extending CrudRepository for CRUD persistence capabilities.
What you can do after
Apply it by selecting its module dependency and defining a repository interface that extends a suitable Spring Data contract.
How it connects
Links JDBC persistence to Spring Data repositories and contracts such as CrudRepository and PagingAndSortingRepository.

Also explained in

Compare how 4 books explain Spring Data JDBC →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring Start Here, Second Edition. The section links point to the parts of the book it draws on.