[LIB-9] Rename chesshog-dbetude module
[chesshog.git] / chesshog-dbetude / src / main / resources / META-INF / persistence.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4   ~ Copyright (c) 2018. Developed by Hedgecode.
5   ~
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   -->
18
19 <persistence xmlns="http://java.sun.com/xml/ns/persistence"
20              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
22              version="1.0">
23
24     <persistence-unit name="db-etude-persistence-unit" transaction-type="RESOURCE_LOCAL">
25         <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
26
27         <class>org.hedgecode.chess.domain.EtudeType</class>
28         <class>org.hedgecode.chess.domain.Author</class>
29         <class>org.hedgecode.chess.domain.Etude</class>
30
31         <properties>
32             <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
33             <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/dbetude"/>
34             <property name="hibernate.connection.username" value=""/>
35             <property name="hibernate.connection.password" value=""/>
36             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
37             <property name="hibernate.hbm2ddl.auto" value="update"/>
38         </properties>
39     </persistence-unit>
40
41 </persistence>