You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
2.1 KiB
39 lines
2.1 KiB
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|
<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="persistenceUnit" transaction-type="RESOURCE_LOCAL"> |
|
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
|
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> |
|
<properties> |
|
<!-- |
|
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> |
|
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/hypaas-app" /> |
|
<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.driver" value="com.mysql.cj.jdbc.Driver" /> |
|
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hypaas-erp?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false" /> |
|
<property name="javax.persistence.jdbc.user" value="hypaas" /> |
|
<property name="javax.persistence.jdbc.password" value="hypaas" /> |
|
--> |
|
<!-- 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.hikaricp.internal.HikariCPConnectionProvider" /> |
|
|
|
<property name="hibernate.hikari.minimumIdle" value="10" /> |
|
<property name="hibernate.hikari.maximumPoolSize" value="200" /> |
|
<property name="hibernate.hikari.idleTimeout" value="30000" /> |
|
|
|
</properties> |
|
</persistence-unit> |
|
</persistence>
|
|
|