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.
Challenge: Build a data repository
From the course: Spring Boot 2.0 Essential Training
Challenge: Build a data repository
(bright music) - [Instructor] Now it's time for another challenge exercise. This time, building a repository. So in order to build a repository, there's a few things that I need you to do. So first of all, build a repository for the employees or the staff. I want you to wire it into the application. So everywhere we were using the default mock data I want you to now start using the database. And I want you to take note of one thing specifically, and that's the enumeration. There's an annotation for it called @Enumerated and you can use a string option so that the enumeration actually gets stored in the database. Likewise, when it reads the enumeration from the database, it will convert it into the Enum in Java. And with that, you're on your own. And I'll see you back with my solution.
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)
-