Question: Develop a Java Spring Boot Web application named hw 1 . The application must meet the following require - ments. We will build on cardatabase

Develop a Java Spring Boot Web application named hw1. The application must meet the following require-
ments.
We will build on cardatabase project from Chapter 3. First, make sure the project works on IntelliJ with
PostgreSQL database without issues (do not use MariaDB).
Create a new entity class named Pet, which contains id (primary key), name (String), species (String),
dob (LocalDate), owner (Owner) as fields.
Make sure Pet class and Owner class have a many-to-one relationship. That is, one owner can have
multiple pets.
Also, create a new PetRepository interface that extends CrudRepository.
When the app starts up, at least 10 owners, 10 cars, and 10 pets must be inserted into their respective
database tables, owner, car, and pet. Open up the Database tab on IntelliJ and check if all 3 tables
have been generated and populated with at least 10 rows each.
Also, all 10 pets and their info (name, species, dob) must be displayed on the console window using
loggerinfo method.
And the database tables must show that owner and pet indeed have a one-to-many relationship, and
so do owner and car.
Make sure to use the following PostgreSQL configuration:
Database: cardb
Port: 5432
User: postgres
Password: postgres
otherwise your program might not run properly when graded, and could incur point deduction.
Develop a Java Spring Boot Web application named

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!