close

Spring Data JDBC

2.4.2

Spring Data JDBC, part of the larger Spring Data family, makes it easy to implement JDBC based repositories. This module deals with enhanced support for JDBC based data access layers. It makes it easier to build Spring powered applications that use data access technologies.

Spring Data JDBC aims at being conceptually easy. In order to achieve this it does NOT offer caching, lazy loading, write behind or many other features of JPA. This makes Spring Data JDBC a simple, limited, opinionated ORM.

The Aggregate Root

Spring Data repositories are inspired by the repository as described in the book Domain Driven Design by Eric Evans. One consequence of this is that you should have a repository per Aggregate Root. Aggregate Root is another concept from the same book and describes an entity which controls the lifecycle of other entities which together are an Aggregate. An Aggregate is a subset of your model which is consistent between method calls to your Aggregate Root.

Spring Data JDBC tries its best to encourage modeling your domain along these ideas.

Features

  • CRUD operations for simple aggregates with customizable NamingStrategy.

  • Support for @Query annotations.

  • Support for MyBatis queries.

  • Events.

  • JavaConfig based repository configuration by introducing @EnableJdbcRepositories.

Spring Initializr

Quickstart Your Project

Bootstrap your application with Spring Initializr.

Documentation

Each Spring project has its own; it explains in great details how you can use project features and what you can achieve with them.
2.4.2 CURRENT GA Reference Doc. API Doc.
3.0.0-SNAPSHOT SNAPSHOT
3.0.0-M5 PRE Reference Doc. API Doc.
2.4.3-SNAPSHOT SNAPSHOT
2.3.7-SNAPSHOT SNAPSHOT
2.3.6 GA Reference Doc. API Doc.
2.2.12-SNAPSHOT SNAPSHOT
2.2.11 GA Reference Doc. API Doc.
Branch Initial Release End of Support End Commercial Support *
2.4.x
2022-05-13 2023-05-13 2024-09-13
2.3.x
2021-11-12 2022-11-12 2024-03-12
2.2.x
2021-04-14 2022-04-14 2023-08-14
2.0.x
2020-05-12 2021-05-12 2022-09-12
1.1.x
2019-09-30 2020-09-30 2022-01-30
1.0.x
2018-09-21 2019-09-21 2021-01-21

OSS support

Free security updates and bugfixes with support from the Spring community. See VMware Tanzu OSS support policy.

Commercial support

Business support from Spring experts during the OSS timeline, plus extended support after OSS End-Of-Life.
Publicly available releases for critical bugfixes and security issues when requested by customers.

Future release

Generation not yet released, timeline is subject to changes.

About commercial support (*)

This page shows the current state of project releases and does not define the commercial support policy. Please refer to the official support policy for more information.