1 <?xml version="1.0" encoding="UTF-8"?>
4 ~ Copyright (c) 2018. Developed by Hedgecode.
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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
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"
24 <persistence-unit name="db-etude-persistence-unit" transaction-type="RESOURCE_LOCAL">
25 <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
27 <class>org.hedgecode.chess.domain.EtudeType</class>
28 <class>org.hedgecode.chess.domain.Author</class>
29 <class>org.hedgecode.chess.domain.Etude</class>
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"/>