[LIB-9] Add original chesshog-db-etude source files
[chesshog.git] / chesshog-db-etude / 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.Etude</class>
28
29         <properties>
30             <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
31             <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/dbetude"/>
32             <property name="hibernate.connection.username" value=""/>
33             <property name="hibernate.connection.password" value=""/>
34             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
35             <property name="hibernate.hbm2ddl.auto" value="update"/>
36         </properties>
37     </persistence-unit>
38
39 </persistence>