Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a database having as a name Practical using PHPMYADMIN. Create a Spring Starter Project with the name Practical . Add the appropriate dependencies (Spring

  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)
  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

  1. Create the 2 model classes (

    Ministry

    MinistryId

    MinistryName

    MinisterName

    Hospital

    HospitalId

    HospitalName

    Address

    ). Make the best choice for the properties datatype. The Entity1 (Line1) is related to many objects of Entity2 (Line2)

  2. Create an interface for each model to implement the CrudRepository services.
  3. Execute the project and Add some records to the generated tables using PHPMYADMIN.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

Were the right people involved in the decision-making process?

Answered: 1 week ago

Question

Were they made on a timely basis?

Answered: 1 week ago