Question
1. Create a database having as a name Practical using PHPMYADMIN. 2. Create a Spring Starter Project with the name Practical. 3. Add the appropriate
1. Create a database having as a name Practical using PHPMYADMIN. 2. Create a Spring Starter Project with the name Practical. 3. Add the appropriate dependencies (Spring Web, Spring JPA and MySQL) and add the reference to MySQL library (only for VDI users (College computers)). 4. Add these parameters to your application.properties file. spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/practical?serverTimezone=UTC spring.datasource.username=root spring.datasource.password= spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver For VDI users, change these parameters to: spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/practical?serverTimezone=UTC spring.datasource.username=root spring.datasource.password= spring.datasource.driver-class-name=com.mysql.jdbc.Driver 5. Create the 2 model classes (use the entities corresponding to your name in the below table). Make the best choice for the properties datatype. The Entity1 (Line1) is related to many objects of Entity2 (Line2) (Ex: in Lab 10, One book is related to many authors. The first entity corresponds to Book and Entity2 corresponds to Author). 6. Create an interface for each model to implement the CrudRepository services. 7. Execute the project and Add some records to the generated tables using PHPMYADMIN. 8. Send the obtained 5 classes and the screenshots for the execution using Postman for all the CRUD operations.
Interview | InterviewId | InterviewDate | Interviewer | Location | |
Candidate | CandidateId | CandidateName | Address | |
If the solution is possible with a screenshot of the result
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started