From 55abc04a99acf123d3ed895322d4f0a1db396cbc Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 22 Mar 2022 17:51:55 +0100 Subject: [PATCH] Add README.md and Hibernate example configuration --- .gitignore | 1 + README.md | 7 +++++++ .../{hibernate.cfg.xml => hibernate-example.cfg.xml} | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 README.md rename src/main/resources/{hibernate.cfg.xml => hibernate-example.cfg.xml} (89%) diff --git a/.gitignore b/.gitignore index 2d513a0..a2b99ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /.idea/ /target/ +/src/main/resources/hibernate.cfg.xml diff --git a/README.md b/README.md new file mode 100644 index 0000000..c71d44a --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# FilmFlix +> Florian CHARLAIX - Pierre WATTEAU | DevOps 1 + +## Database Setup +Create database tables with the file `example.sql` + +Copy the file `hibernate-example.cfg.xml` to `hibernate.cfg.xml` in `resources` folder and replace database login values. diff --git a/src/main/resources/hibernate.cfg.xml b/src/main/resources/hibernate-example.cfg.xml similarity index 89% rename from src/main/resources/hibernate.cfg.xml rename to src/main/resources/hibernate-example.cfg.xml index 8bfcb25..79970e6 100644 --- a/src/main/resources/hibernate.cfg.xml +++ b/src/main/resources/hibernate-example.cfg.xml @@ -15,15 +15,15 @@ - jdbc:mariadb://localhost:3306/filmflix + jdbc:mariadb://localhost:3306/DATABASE - filmflix + USER - filmflix + PASSORD \ No newline at end of file