[LIB-9] Environment and persistence functionality
[chesshog.git] / chesshog-db-etude / src / main / resources / META-INF / persistence.xml
index 8d0db9d..08dabfa 100644 (file)
@@ -24,6 +24,8 @@
     <persistence-unit name="db-etude-persistence-unit" transaction-type="RESOURCE_LOCAL">
         <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
 
+        <class>org.hedgecode.chess.domain.EtudeType</class>
+        <class>org.hedgecode.chess.domain.Author</class>
         <class>org.hedgecode.chess.domain.Etude</class>
 
         <properties>
@@ -31,7 +33,7 @@
             <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/dbetude"/>
             <property name="hibernate.connection.username" value=""/>
             <property name="hibernate.connection.password" value=""/>
-            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
+            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
             <property name="hibernate.hbm2ddl.auto" value="update"/>
         </properties>
     </persistence-unit>