This project demonstrates how to write a Spring Boot application that has multiple related entities. Specifically, you get to learn the working on one to many and many to many relationship between entities.
- Create a database and a user using the following commands:
CREATE DATABASE profilesdb;
CREATE USER 'john'@'localhost' identified by 'yourpasswordhere';
GRANT ALL ON contactsdb.* to 'john'@'localhost';
-
Import this project into Eclipse or Visual Studio Code
-
Configure application.properties with the appropriate values
-
Run the DemoApplication from your IDE
-
Examine the data created in the tables
show tables;
show create table profile;
show create table experience;
show create table website;
show create table profile_websites;
select * from profile;
select * from experience;
select * from website;
select * from profile_websites;