<?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.jbpm.contrib.camel-workitem" transaction-type="JTA">
    <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
    <jta-data-source>jdbc/testDS1</jta-data-source>

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

      <property name="hibernate.dialect" value="${maven.hibernate.dialect}"/>

      <property name="hibernate.connection.driver_class" value="${maven.jdbc.driver.class}"/>
      <property name="hibernate.connection.url" value="${maven.jdbc.url}"/>
      <property name="hibernate.connection.username" value="${maven.jdbc.username}"/>
      <property name="hibernate.connection.password" value="${maven.jdbc.password}"/>
      <property name="hibernate.default_schema" value="${maven.jdbc.schema}"/>

      <!-- BZ 841786: AS7/EAP 6/Hib 4 uses new (sequence) generators which seem to cause problems -->
      <property name="hibernate.id.new_generator_mappings" value="false"/>

      <!-- The following line is what's used in Hibernate 4 instead of a TransactionManagerLookup class -->
      <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossStandAloneJtaPlatform"/>
    </properties>
  </persistence-unit>


</persistence>
