Files
Athou_commafeed/src/main/resources/META-INF/persistence.xml

49 lines
2.0 KiB
XML
Raw Normal View History

2013-03-20 20:33:42 +01:00
<?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">
2013-06-11 17:01:21 +02:00
<persistence-unit name="primary" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
2013-03-21 16:22:58 +01:00
<jta-data-source>${jpa.datasource.name}</jta-data-source>
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
2013-03-20 20:33:42 +01:00
<properties>
2013-06-06 10:57:58 +02:00
<property name="format_sql" value="true" />
<property name="use_sql_comments" value="true" />
2013-03-27 10:46:07 +01:00
<property name="hibernate.show_sql" value="${jpa.show_sql}" />
2013-06-06 10:57:58 +02:00
2013-04-14 09:12:16 +02:00
<property name="hibernate.dialect" value="${jpa.dialect}" />
<property name="hibernate.default_batch_fetch_size" value="100" />
2013-06-05 11:58:35 +02:00
2013-06-07 15:45:51 +02:00
<property name="hibernate.jdbc.batch_size" value="50" />
2013-06-06 09:54:17 +02:00
<property name="hibernate.order_inserts" value="true" />
<property name="hibernate.order_updates" value="true" />
2013-06-05 11:58:35 +02:00
<property name="hibernate.generate_statistics" value="true" />
<property name="hibernate.cache.use_second_level_cache"
value="${jpa.cache}" />
2013-06-27 09:14:39 +02:00
<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" />
2013-03-20 20:33:42 +01:00
</properties>
</persistence-unit>
</persistence>