Created
August 24, 2017 05:49
-
-
Save galderz/c7cfd617b6192fb013d7b646671a90d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | |
<persistence-unit name="DefaultUnit" transaction-type="JTA"> | |
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> | |
<jta-data-source>java:/MyDataSource</jta-data-source> | |
<class>...</class> | |
<exclude-unlisted-classes>true</exclude-unlisted-classes> | |
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> | |
<properties> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect" /> | |
<property name="hibernate.show_sql" value="true" /> | |
<property name="hibernate.connection.datasource" value="java:/MyDataSource"/> | |
<property name="hibernate.generate_statistics" value="true" /> | |
<property name="hibernate.cache.infinispan.statistics" value="true"/> | |
<property name="hibernate.cache.use_second_level_cache" value="true" /> | |
<property name="hibernate.cache.use_query_cache" value="true" /> | |
</properties> | |
</persistence-unit> | |
</persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment