Learn about the abstraction called a Repository Interface that is used by all Spring Data data sources.
- [Instructor] And there is. … Spring Data JPA. … We get better functionality while writing less code. … In chapter one we learned that Spring Data … abstracts away from any particular data source … by following a repository pattern. … Now we're actually going to see … the implementation of that pattern. … Spring Data starts with a repository interface … with two bounded type parameters. … The first parameter, T, is the entity class name. … And the second parameter, ID, … is the type of the unique ID of the entity. … The repository interface … is just a marker without any methods. … CrudRepository extends from repository … and declares methods that create, update, read … and delete entities and inherit the bounded type parameters. … Both repository and CrudRepository are packaged in … com … framework … data … repository. … To create or update, invoke the save or save all methods. … There are now four delete methods in Spring Data V2 … to remove entities from the database. … And finally, to read or do lookups, …
AuthorMary Ellen Bowman
In 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
Java Database Access with Hibernatewith Peggy Fisher1h 28m Intermediate
1. The Spring Data Umbrella Project
Spring Data Commons2m 39s
2. Understanding JPA for Object-Relational Mapping
3. Introduction to Spring Data JPA
4. Querying with Spring Data
5. More Repository Types
6. Special Features
- 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.Cancel
Take 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.