1 <?xml version='1.0' encoding='utf-8'?>
3 ~ Hibernate, Relational Persistence for Idiomatic Java
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.
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.
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
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
25 <!DOCTYPE hibernate-configuration PUBLIC
26 "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
27 "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
29 <hibernate-configuration>
33 <!-- Database connection settings -->
34 <property name="connection.driver_class">org.h2.Driver</property>
35 <property name="connection.url">jdbc:h2:${project.build.directory}/db/test;MVCC=TRUE</property>
36 <property name="connection.username">sa</property>
37 <property name="connection.password"></property>
39 <!-- JDBC connection pool (use the built-in) -->
40 <property name="connection.pool_size">1</property>
43 <property name="dialect">org.hibernate.dialect.H2Dialect</property>
45 <!-- Disable the second-level cache -->
46 <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>
48 <!-- Echo all executed SQL to stdout -->
49 <property name="show_sql">true</property>
51 <!-- Names the annotated entity class -->
52 <mapping class="org.hibernate.tutorial.annotations.Event"/>
56 </hibernate-configuration>