mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
49 lines
2.0 KiB
XML
49 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<persistence version="2.0"
|
|
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">
|
|
<persistence-unit name="primary" transaction-type="JTA">
|
|
<provider>org.hibernate.ejb.HibernatePersistence</provider>
|
|
<jta-data-source>${jpa.datasource.name}</jta-data-source>
|
|
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
|
|
<properties>
|
|
|
|
<property name="format_sql" value="true" />
|
|
<property name="use_sql_comments" value="true" />
|
|
<property name="hibernate.show_sql" value="${jpa.show_sql}" />
|
|
|
|
<property name="hibernate.dialect" value="${jpa.dialect}" />
|
|
<property name="hibernate.default_batch_fetch_size" value="100" />
|
|
|
|
<property name="hibernate.jdbc.batch_size" value="50" />
|
|
<property name="hibernate.order_inserts" value="true" />
|
|
<property name="hibernate.order_updates" value="true" />
|
|
|
|
<property name="hibernate.generate_statistics" value="true" />
|
|
|
|
<property name="hibernate.cache.use_second_level_cache"
|
|
value="${jpa.cache}" />
|
|
<property name="hibernate.cache.use_query_cache" value="${jpa.cache}" />
|
|
|
|
<property name="hibernate.cache.region.factory_class"
|
|
value="org.hibernate.cache.infinispan.InfinispanRegionFactory" />
|
|
<property name="hibernate.cache.infinispan.statistics"
|
|
value="true" />
|
|
|
|
<property name="hibernate.cache.infinispan.entity.eviction.strategy"
|
|
value="LRU" />
|
|
<property
|
|
name="hibernate.cache.infinispan.entity.eviction.wake_up_interval"
|
|
value="2000" />
|
|
<property name="hibernate.cache.infinispan.entity.eviction.max_entries"
|
|
value="100000" />
|
|
<property name="hibernate.cache.infinispan.entity.expiration.lifespan"
|
|
value="60000" />
|
|
<property name="hibernate.cache.infinispan.entity.expiration.max_idle"
|
|
value="30000" />
|
|
|
|
</properties>
|
|
</persistence-unit>
|
|
</persistence> |