Fixed the settings in the pom's of the tutorials
[hibernate4-maven-plugin] / src / it / tutorials / basic / src / test / resources / hibernate.cfg.xml
1 <?xml version='1.0' encoding='utf-8'?>
2 <!--
3   ~ Hibernate, Relational Persistence for Idiomatic Java
4   ~
5   ~ Copyright (c) 2010, Red Hat Inc. or third-party contributors as
6   ~ indicated by the @author tags or express copyright attribution
7   ~ statements applied by the authors.  All third-party contributions are
8   ~ distributed under license by Red Hat Inc.
9   ~
10   ~ This copyrighted material is made available to anyone wishing to use, modify,
11   ~ copy, or redistribute it subject to the terms and conditions of the GNU
12   ~ Lesser General Public License, as published by the Free Software Foundation.
13   ~
14   ~ This program is distributed in the hope that it will be useful,
15   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16   ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
17   ~ for more details.
18   ~
19   ~ You should have received a copy of the GNU Lesser General Public License
20   ~ along with this distribution; if not, write to:
21   ~ Free Software Foundation, Inc.
22   ~ 51 Franklin Street, Fifth Floor
23   ~ Boston, MA  02110-1301  USA
24   -->
25 <!DOCTYPE hibernate-configuration PUBLIC
26         "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
27         "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
28
29 <hibernate-configuration>
30
31     <session-factory>
32
33         <!-- Database connection settings -->
34         <property name="connection.driver_class">org.h2.Driver</property>
35         <property name="connection.url">jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE</property>
36         <property name="connection.username">sa</property>
37         <property name="connection.password"/>
38
39         <!-- JDBC connection pool (use the built-in) -->
40         <property name="connection.pool_size">1</property>
41
42         <!-- SQL dialect -->
43         <property name="dialect">org.hibernate.dialect.H2Dialect</property>
44
45         <!-- Disable the second-level cache  -->
46         <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>
47
48         <!-- Echo all executed SQL to stdout -->
49         <property name="show_sql">true</property>
50
51         <!-- Drop and re-create the database schema on startup -->
52         <property name="hbm2ddl.auto">create</property>
53
54         <mapping resource="org/hibernate/tutorial/hbm/Event.hbm.xml"/>
55
56     </session-factory>
57
58 </hibernate-configuration>