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 hw The application must meet the following require
ments.
We will build on cardatabase project from Chapter 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 manytoone 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 owners, cars, and pets must be inserted into their respective
database tables, owner, car, and pet. Open up the Database tab on IntelliJ and check if all tables
have been generated and populated with at least rows each.
Also, all 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 onetomany relationship, and
so do owner and car.
Make sure to use the following PostgreSQL configuration:
Database: cardb
Port:
User: postgres
Password: postgres
otherwise your program might not run properly when graded, and could incur point deduction.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
