You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spring Data JDBC, part of the larger <ahref="/spring-data">Spring
31
+
Data</a> family, makes it easy to easily implement JDBC based
32
+
repositories. This module deals with enhanced support for JDBC based
33
+
data access layers. It makes it easier to build Spring-powered
34
+
applications that use data access technologies.
35
+
36
+
{% endcapture %}
37
+
38
+
{% capture main_content %}
39
+
40
+
## This is NOT an ORM
41
+
Spring Data JDBC does not try to be an ORM. It is not a competitor to JPA. Instead it is more of a construction kit for your personal ORM that you can define the way you like or need it.
42
+
43
+
This means that it does rather little out of the box. But it offers plenty of places where you can put your own logic, or integrate it with the technology of your choice for generating SQL statements.
44
+
45
+
## The Aggregate Root
46
+
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.
47
+
48
+
Spring Data JDBC tries its best to encourage modelling your domain along these ideas.
49
+
50
+
## Features
51
+
52
+
- CRUD operations for simple aggregates with customizable `NamingStrategy`.
53
+
- Support for `@Query` annotations.
54
+
- Support for MyBatis queries.
55
+
- Events.
56
+
- JavaConfig based repository configuration by introducing `@EnableJdbcRepositories`.
57
+
58
+
<spanid="quick-start"></span>
59
+
60
+
## Quick Start
61
+
62
+
{% include download_widget.md %}
63
+
64
+
{% endcapture %}
65
+
66
+
{% capture related_resources %}
67
+
68
+
## Related Resources
69
+
70
+
### Sample Projects
71
+
72
+
* [Spring Data JDBC Examples](https://github.com/spring-projects/spring-data-examples/tree/master/jdbc)
0 commit comments