<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1"
             xmlns="http://xmlns.jcp.org/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">

  <persistence-unit name="org.drools.persistence.jpa.local" transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
    <!--
    <jta-data-source>jdbc/testDS1</jta-data-source>
    -->
    <class>org.drools.persistence.info.SessionInfo</class>
    <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
    <class>org.drools.persistence.info.WorkItemInfo</class>
    <class>org.jbpm.persistence.correlation.CorrelationKeyInfo</class>
    <class>org.jbpm.persistence.correlation.CorrelationPropertyInfo</class>

    <!-- my persistent variables -->
    <class>org.kie.spring.beans.persistence.MyEntity</class>
    <class>org.kie.spring.beans.persistence.MyEntityMethods</class>
    <class>org.kie.spring.beans.persistence.MyEntityOnlyFields</class>
    <properties>
      <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
      <!--property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/-->
      <!--property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/-->

      <property name="hibernate.max_fetch_depth" value="3"/>
      <property name="hibernate.hbm2ddl.auto" value="create"/>
      <property name="hibernate.show_sql" value="false"/>

      <!--
      <property name="hibernate.connection.autocommit" value="false" />
      <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup" />
      -->
    </properties>
  </persistence-unit>
</persistence>
