Add README.md and Hibernate example configuration
This commit is contained in:
parent
5d6642e696
commit
55abc04a99
3 changed files with 11 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/.idea/
|
/.idea/
|
||||||
/target/
|
/target/
|
||||||
|
/src/main/resources/hibernate.cfg.xml
|
||||||
|
|
7
README.md
Normal file
7
README.md
Normal file
|
@ -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.
|
|
@ -15,15 +15,15 @@
|
||||||
<!-- Assume test is the database name -->
|
<!-- Assume test is the database name -->
|
||||||
|
|
||||||
<property name = "hibernate.connection.url">
|
<property name = "hibernate.connection.url">
|
||||||
jdbc:mariadb://localhost:3306/filmflix
|
jdbc:mariadb://localhost:3306/DATABASE
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
<property name = "hibernate.connection.username">
|
<property name = "hibernate.connection.username">
|
||||||
filmflix
|
USER
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
<property name = "hibernate.connection.password">
|
<property name = "hibernate.connection.password">
|
||||||
filmflix
|
PASSORD
|
||||||
</property>
|
</property>
|
||||||
</session-factory>
|
</session-factory>
|
||||||
</hibernate-configuration>
|
</hibernate-configuration>
|
Reference in a new issue