All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.persistence.xml Maven / Gradle / Ivy

There is a newer version: 0.3.3
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0">
  <persistence-unit name="defaultJPAUnit">
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
      <property name="hibernate.hbm2ddl.auto" value="update"/>
      <property name="hibernate.connection.driver_class" value="com.p6spy.engine.spy.P6SpyDriver"/>
      <!-- H2 -->
      <property name="hibernate.connection.url" value="jdbc:p6spy:h2:./file-cli.db;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE"/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
      <!-- Postgres 10 -->
      <!--<property name="hibernate.connection.url" value="jdbc:p6spy:postgresql://localhost/remote?user=remote"/>-->
      <!--<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL9Dialect"/>-->
      <!--<property name="hibernate.hbm2ddl.import_files" value="import.sql"/>-->
      <!--
            -->
      <property name="hibernate.connection.provider_class" value="org.hibernate.hikaricp.internal.HikariCPConnectionProvider"/>
      <property name="org.hibernate.flushMode" value="COMMIT"/>
    </properties>
  </persistence-unit>
</persistence>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy