Question: Kindly answer the spring boot question correctly for guranteed upvote. Create a registry for guests and pets.: Step 1 : Build A Guest and Pet
Kindly answer the spring boot question correctly for guranteed upvote. Create a registry
for guests and pets.: Step : Build A Guest and Pet
We want a Guest object. They are going to need an ID a name, and age. The ID should be auto
generated.
We also want a Pet object. The pet is going to need an ID a name, and a species. The ID should be auto
generated.
The Guest will have a Pet object. Note that not every Guest will have a Pet but every Pet must belong to
a Guest. Have a OneToOne relationship between Guest and Pet.
Step : Add and View
Create an add page for your Guest and Pet. I will leave it up to you how you will design this. Remember
that a Pet must be assigned to a Guest. Also some Guests do not have pets.
In a separate page create a view that will display all the Guests. Include a column or columns for pets
that will display Pet information if the Guest has a Pet.
Step : Default Records
Create at least default Guest and Pet records to test your application.
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
