Archived
1
0
Fork 0

Merge branch 'flifloo'

This commit is contained in:
Ethanell 2022-03-22 17:56:20 +01:00
commit 8903521f6c
2 changed files with 36 additions and 0 deletions

7
README.md Normal file
View 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.

View file

@ -0,0 +1,29 @@
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE hibernate-configuration SYSTEM
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name = "hibernate.dialect">
org.hibernate.dialect.MariaDBDialect
</property>
<property name = "hibernate.connection.driver_class">
org.mariadb.jdbc.Driver
</property>
<!-- Assume test is the database name -->
<property name = "hibernate.connection.url">
jdbc:mariadb://localhost:3306/DATABASE
</property>
<property name = "hibernate.connection.username">
USER
</property>
<property name = "hibernate.connection.password">
PASSORD
</property>
</session-factory>
</hibernate-configuration>