Learn about exposing Repositories as RESTful resources.
- [Narrator] Spring Data rest…is a module for exposing Spring Data repositories…as hypermedia-driven restful web services.…And it's actually pretty amazing.…Similar to Spring Data commons,…which extrapolates the underlying backend…data store services from a CrudRepository,…Spring Data REST exposes those same repositories…as web services with no coding…or extra configuration.…At application startup,…Spring Data REST finds all the available…Spring Data repositories,…creates an endpoint that matches that entity name,…appends an s to the endpoint,…and exposes the operations…as RESTful Resource APIs over HTTP.…
So what is the mapping between a RESTful API…and its CrudRepository method.…HTTP GET of the resource maps to CrudRepository findAll.…The resource is what we call the endpoint…and it usually has the same name as the entity.…HTTP GET of the resource/<id> maps to find one.…HTTP GET of the resource/search/querymethod…maps to the query method.…
HTTP POST of the resource,…which creates a new object,…maps the CrudRepository save method.…
Author
Released
5/30/2017In this course, learn how to easily implement JPA-based repositories using Spring Data JPA. Mary Ellen Bowman describes the Spring Data umbrella project, and helps you understand JPA for object-relational mapping. She also covers querying, and dives into other Spring Data Commons features such as QueryDSL and auditing.
- Spring Data Commons
- Using JPA for object-relational mapping
- Declaring Spring Data Repositories
- Creating query methods with property expressions and @Query
- Query by example
- QueryDSL Spring Data Extension
- Spring Data REST
- Introduction to Spring Data Mongo
- Common pitfalls
Skill Level Intermediate
Duration
Views
Related Courses
-
Java: Testing with JUnit
with Peggy Fisher1h 10m Intermediate -
Learning Spring with Spring Boot
with Frank P Moley III1h 38m Intermediate -
Java Database Access with Hibernate
with Peggy Fisher1h 28m Intermediate
-
Introduction
-
Welcome1m 3s
-
-
1. The Spring Data Umbrella Project
-
Spring Data Commons2m 39s
-
-
2. Understanding JPA for Object-Relational Mapping
-
3. Introduction to Spring Data JPA
-
JPA without Spring Data2m 26s
-
JPA Repository3m 27s
-
-
4. Querying with Spring Data
-
@Query query methods3m 55s
-
Page and sort4m 24s
-
Query by Example3m 54s
-
Debug query method errors5m 52s
-
5. Other Spring Data Commons Features
-
Audit1m 57s
-
Read-only Repository pattern2m 20s
-
6. More Spring Data Modules
-
Spring Data REST7m 34s
-
-
Conclusion
-
Next steps33s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Spring Data REST