From the course: Building Full-Stack Apps with React and Spring
Data options and JPA
From the course: Building Full-Stack Apps with React and Spring
Data options and JPA
- [Instructor] When we set up Spring, we set it up with JPA and also SQL Database, or you can pretty much use whatever database you feel comfortable with. So go to spring.io/projects/spring-data and you can see some of the different options available for SQL or NoSQL on this link. And if you prefer down the road to set your project with a different database, if you scroll down, you'll see what are the different options available. So if you look at the list here, you have, for example, MongoDB, Redis and a bunch more. Then if you want to select a database with a guide in Spring's documentation, you can look into this link here which is spring.io/guides which is basically this section here and once you get to this section, you can actually find any guide based on something. So for example, if we do MongoDB, we'll have sections based on MongoDB, or you can simply do data like so. So what is exactly JPA? JPA stands for Java Persistence API and it's basically the database implementation that defines what object needs to be persistent in a database of your choosing. In this case, we used a SQL-based database. Spring's implementation is simplified to make the use of JPA a lot more developer-friendly. Okay, so now that we've got a better idea of our options, let's move on to code our initial model.
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.