1 <?xml version="1.0" encoding="UTF-8"?>
2 <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns="http://java.sun.com/xml/ns/persistence"
4 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
6 <persistence-unit name="dst_pu">
7 <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
8 <mapping-file>META-INF/Material.xml</mapping-file>
9 <mapping-file>META-INF/orm.xml</mapping-file>
11 <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
12 <property name="hibernate.connection.url"
13 value="jdbc:h2:/tmp/database/dst;AUTO_SERVER=TRUE;MVCC=true;INIT=DROP ALL OBJECTS DELETE FILES"/>
14 <!--<property name="hibernate.connection.username" value=""/>-->
15 <!--<property name="hibernate.connection.password" value=""/>-->
16 <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
17 <property name="hibernate.hbm2ddl.auto" value="create"/>
18 <property name="hibernate.show_sql" value="false"/>
19 <property name="org.hibernate.FlushMode" value="COMMIT"/>
20 <property name="javax.persistence.validation.mode" value="NONE"/>
22 <!-- register the sql interceptor -->
23 <property name="hibernate.session_factory.interceptor" value="dst.ass1.jpa.interceptor.SQLInterceptor"/>