07a891da31a849c161ae0d45a43e8cfd1de5a883
[hibernate4-maven-plugin] / src / it / tutorials / entitymanager / src / test / resources / META-INF / persistence.xml
1 <!--
2   ~ Hibernate, Relational Persistence for Idiomatic Java
3   ~
4   ~ Copyright (c) 2010, Red Hat Inc. or third-party contributors as
5   ~ indicated by the @author tags or express copyright attribution
6   ~ statements applied by the authors.  All third-party contributions are
7   ~ distributed under license by Red Hat Inc.
8   ~
9   ~ This copyrighted material is made available to anyone wishing to use, modify,
10   ~ copy, or redistribute it subject to the terms and conditions of the GNU
11   ~ Lesser General Public License, as published by the Free Software Foundation.
12   ~
13   ~ This program is distributed in the hope that it will be useful,
14   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15   ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
16   ~ for more details.
17   ~
18   ~ You should have received a copy of the GNU Lesser General Public License
19   ~ along with this distribution; if not, write to:
20   ~ Free Software Foundation, Inc.
21   ~ 51 Franklin Street, Fifth Floor
22   ~ Boston, MA  02110-1301  USA
23   -->
24 <persistence xmlns="http://java.sun.com/xml/ns/persistence"
25              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
27              version="2.0">
28
29     <persistence-unit name="org.hibernate.tutorial.jpa">
30         <description>
31             Persistence unit for the JPA tutorial of the Hibernate Getting Started Guide
32         </description>
33
34         <class>org.hibernate.tutorial.em.Event</class>
35
36         <properties>
37             <property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
38             <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE" />
39             <property name="javax.persistence.jdbc.user" value="sa" />
40             <property name="javax.persistence.jdbc.password" value="" />
41
42             <property name="hibernate.show_sql" value="true" />
43             <property name="hibernate.hbm2ddl.auto" value="create" />
44         </properties>
45
46     </persistence-unit>
47
48 </persistence>