Merge branch 'flifloo'
This commit is contained in:
commit
8903521f6c
2 changed files with 36 additions and 0 deletions
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.
|
29
src/main/resources/hibernate-example.cfg.xml
Normal file
29
src/main/resources/hibernate-example.cfg.xml
Normal 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>
|
Reference in a new issue