liveBook · Manning

Spring Data JDBC

Spring Data JDBC is a Spring Data module that provides repository-based access to relational databases through JDBC without requiring a full object-relational mapping framework.

How 3 Manning books explain it

Java Persistence with Spring Data and Hibernate epub

Spring Data JDBC is a Spring Data module that provides database access through JDBC with reduced persistence boilerplate.

How it is used
Provides JDBC-based repository access when reducing ORM complexity matters more than JPA's broader capabilities.
How deep it goes
Works through project setup, derived and explicit queries, and relationship mappings, including schema and lifecycle consequences.
Examples
Uses a MySQL-backed user repository, date-range query methods, one-to-one addresses, and a many-to-many join table.
What you can do after
Build it from scratch with Spring Boot, then define repository queries and map one-to-one, one-to-many, many-to-many, or embedded data.

Read how Java Persistence with Spring Data and Hibernate epub explains Spring Data JDBC →

Spring in Action, Sixth Edition

Spring Data JDBC is a Spring Data project that provides repository abstractions for persisting objects through JDBC without requiring a full object-relational mapping framework.

How it is used
Simplifies relational persistence, particularly saving nested order objects that require substantial hand-written JDBC code.
How deep it goes
Works through domain mapping and startup loading, then states the SQL rule for custom queries without detailing generated repository internals.
Examples
Uses taco orders, mapped ingredients, a Maven starter dependency, and a startup loader that saves ingredient records.
What you can do after
Apply it via Spring Data JDBC repository interfaces to save domain objects, map their fields, and preload ingredient data.

Read how Spring in Action, Sixth Edition explains Spring Data JDBC →

Spring AI in Action

Spring Data JDBC is a Spring Data module that provides repository-based relational database access using JDBC.

How it is used
Supports relational game-data access in Spring Boot tools and custom MCP servers.
How deep it goes
Explains dependencies, database initialization, record mapping, standard repositories, and custom SQL queries.
Examples
Uses Game records, GameRepository interfaces, H2 and PostgreSQL schemas, seed data, slug lookup, player-count, and playing-time queries.
What you can do after
Build it from scratch by configuring a database, mapping records, and querying relational data through repositories.

Read how Spring AI in Action explains Spring Data JDBC →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.