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

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…

Contents