WIP:site
[hibernate-maven-plugin] / src / it / tutorials-5.1.17 / osgi / unmanaged-native / src / main / resources / hibernate.cfg.xml
1 <?xml version='1.0' encoding='utf-8'?>
2 <!--
3   ~ Hibernate, Relational Persistence for Idiomatic Java
4   ~
5   ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
6   ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
7   -->
8 <!DOCTYPE hibernate-configuration PUBLIC
9 "-//Hibernate/Hibernate Configuration DTD//EN"
10 "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
11  
12 <hibernate-configuration>
13     <session-factory>
14         <property name="hibernate.connection.driver_class">org.h2.Driver</property>
15         <property name="hibernate.connection.url">jdbc:h2:mem:db_unmanaged_native;DB_CLOSE_DELAY=-1;MVCC=TRUE</property>
16         <property name="hibernate.connection.username">sa</property>
17         <property name="hibernate.connection.password"></property>
18         <property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property>
19         <property name="hibernate.hbm2ddl.auto">create-drop</property>
20         
21         <!-- <property name="hibernate.connection.pool_size">5</property>
22                 <property name="hibernate.c3p0.min_size">50</property>
23                 <property name="hibernate.c3p0.max_size">800</property>
24                 <property name="hibernate.c3p0.max_statements">50</property>
25                 <property name="hibernate.jdbc.batch_size">10</property>
26                 <property name="hibernate.c3p0.timeout">300</property>
27                 <property name="hibernate.c3p0.idle_test_period">3000</property>
28                 <property name="hibernate.c3p0.testConnectionOnCheckout">true</property> -->
29                 
30                 <!-- <property name="hibernate.connection.pool_size">5</property>
31                 <property name="hibernate.jdbc.batch_size">10</property>
32                 <property name="hibernate.connection.provider_class">proxool</property>
33                 <property name="hibernate.proxool.properties">pool-one.properties</property>
34                 <property name="hibernate.proxool.pool_alias">pool-one</property> -->
35                 
36                 <!-- <property name="hibernate.cache.region_prefix">hibernate.test</property>
37                 <property name="cache.use_query_cache">true</property>
38         <property name="cache.use_second_level_cache">true</property>
39         <property name="cache.use_structured_entries">true</property>
40         <property name="cache.region.factory_class">org.hibernate.cache.EhCacheRegionFactory</property>
41         <property name="net.sf.ehcache.configurationResourceName">file:///[PATH]/unmanaged-jpa/src/main/resources/ehcache.xml</property> -->
42     
43         <!-- <property name="hibernate.cache.region_prefix">hibernate.test</property>
44                 <property name="cache.use_query_cache">true</property>
45         <property name="cache.use_second_level_cache">true</property>
46         <property name="cache.use_structured_entries">true</property>
47         <property name="cache.region.factory_class">org.hibernate.cache.infinispan.InfinispanRegionFactory</property> -->
48         
49         <mapping class="org.hibernate.osgitest.entity.DataPoint"/>
50     </session-factory>
51  
52 </hibernate-configuration>