<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  <persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
    <properties>
      <!--
      <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
      <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
      <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/my-axelor-app-dev" />
      -->
      <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
      <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" />
      <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:test" />

      <property name="javax.persistence.jdbc.user" value="sa" />
      <property name="javax.persistence.jdbc.password" value="" />

      <!-- value="create" to build a new database on each run;
           value="update" to modify an existing database;
           value="create-drop" means the same as "create" but also drops tables when Hibernate closes;
           value="validate" makes no changes to the database -->
      <property name="hibernate.hbm2ddl.auto" value="update" />

      <!-- connection pooling -->
      <property name="hibernate.connection.provider_class"
        value="org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider" />

      <property name="hibernate.c3p0.max_size" value="50" />
      <property name="hibernate.c3p0.min_size" value="2" />
      <property name="hibernate.c3p0.acquire_increment" value="5" />
      <property name="hibernate.c3p0.idle_test_period" value="300" />
      <property name="hibernate.c3p0.max_statements" value="100" />
      <property name="hibernate.c3p0.timeout" value="600" />

    </properties>
  </persistence-unit>
</persistence>
