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
From the course: Spring Boot 2.0 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
The Repository pattern2m 58s
-
(Locked)
Introduction to Spring Data3m 46s
-
(Locked)
Building embedded databases4m 30s
-
(Locked)
Building a Spring Data repository4m 23s
-
(Locked)
Connecting to external databases4m 12s
-
(Locked)
Challenge: Build a data repository57s
-
(Locked)
Solution: Build a data repository2m 17s
-
(Locked)
-