From the course: Creating Spring Boot Microservices
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Challenge: Create a JPQL query method - Spring Boot Tutorial
From the course: Creating Spring Boot Microservices
Challenge: Create a JPQL query method
“
- [Instructor] So I have a challenge for you in the TourService class. I have two new methods on the service. One is called lookup by difficulty and lookup by package, and they are currently returning empty lists. And I want query methods on the tour repository that will look up all the tours by difficulty, and then look up a list of tours by a certain package name. See if you can add two methods that do that and then invoke them in this service.
Contents
-
-
-
-
-
(Locked)
The domain model2m 9s
-
(Locked)
The persistence entities2m 2s
-
(Locked)
Declare JPA repositories4m 36s
-
(Locked)
Spring Data JPA repository dependency injection3m 48s
-
(Locked)
Invoking the repositories7m 33s
-
(Locked)
Introduction to Spring Data query methods3m 2s
-
(Locked)
Challenge: Create a JPQL query method38s
-
(Locked)
Solution: Create a JPQL query method2m 35s
-
(Locked)
-
-
-
-
-
-
-