From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The Repository pattern

The Repository pattern

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

The Repository pattern

- [Instructor] Now that we're ready to dig into Spring Data, we need to talk about a pattern that is central to the operation of Spring Data and that is the repository pattern. So let's talk about how the repository pattern is used in Spring. First and foremost, as mentioned, most of Spring Data is based on this pattern. Spring JDBC can be used also to create repository type actions, or DAO actions, and while part of Spring Data, they have unfortunately lost favor with many developers. We will also see later in the course how Spring Data repositories can be used to create web services on their own. Now, I want to kind of walk through the pattern is itself in a nutshell. First of all, it was introduced as part of domain-driven design and often when we're building microservices, that's the design pattern that we are using. There are simple operations of an entity or business object without knowledge of other entities as…

Contents