From the course: Spring Boot and React: Build Scalable and Dynamic Web Apps
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Data access
From the course: Spring Boot and React: Build Scalable and Dynamic Web Apps
Data access
- [Speaker] Now it's time to do a quick run through of setting up our data access. All right, the first thing that I want you to do is to open up source main resources and your application.properties file. And we're going to put in a property here and I'm going to let it auto complete for spring.jpa.hibernate.ddl-auto and we're going to set that equal to none. Now in source main java, I want you to create a new package under the base package and we will call this data.entities. And we are going to create our first data entity. And this is going to be the customer entity. All right, now if you go up to the data directory, you'll see I've got two files. I want you to take and copy those files and place them in source main resources. Now I want you to open up the schema file and you can see that we have four tables defined. So we're going to create an entity for the customers. And I'm going to do that by simply copying over…
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)
Understanding the architecture2m 49s
-
(Locked)
Data access3m 46s
-
(Locked)
Setting up for web2m 52s
-
(Locked)
Build a service5m 57s
-
(Locked)
Challenge: Data access1m 41s
-
(Locked)
Solution: Data access1m 20s
-
(Locked)
REST API6m 16s
-
(Locked)
Challenge: REST1m 31s
-
(Locked)
Solution: REST1m 34s
-
(Locked)
-
-