In this video, learn how to code the JPA repository that will be used to store your data into the backend.
- [Instructor] So now we need to create … a repository for a new model. … With the repository file, … we're connecting the model … and its primary key into Spring's CRUD. … So I get in the same folder called model, … we'll create a brand new file. … So let's go ahead and create a new file … and we're going to call this file ContactRepository.java. … And in this file, we'll also use the package. … So if you want to go back to Contact, … you can literally copy this line here. … So we're going to use that, copy that … and paste it here. … And then we'll import … org.springframework … dot data.repository … dot CrudRepository. … So it should be an import though, … so let's go and make sure we import this. … So org.springframework.data.repository.CrudRepository … with a capital R. … Once you have that, … you should be able to create the repository. … So let's go ahead and do public interface … ContactRepository … extends CrudRepository … and then we're going to pass to it Contact … Long for the ID. …
- Reviewing the platforms
- Initializing the project
- Defining the first model class
- Setting up the JPA repository
- Building the endpoints for the HTTP class controller
- Creating the front-end components
- Styling components
- Connecting component to the server
- Adding server controllers
Skill Level Intermediate
1. Initial Setup
2. Spring Models
3. HTTP with Spring
4. Basic Frontend with React
- 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.