1 <?xml version="1.0" encoding="UTF-8"?>
2 <persistence xmlns="http://java.sun.com/xml/ns/persistence"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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" value="jdbc:h2:/tmp/database/dst;AUTO_SERVER=TRUE;MVCC=true"/>
13 <!--<property name="hibernate.connection.username" value=""/>-->
14 <!--<property name="hibernate.connection.password" value=""/>-->
15 <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
16 <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
17 <property name="hibernate.show_sql" value="false"/>
18 <property name="javax.persistence.validation.mode" value="NONE"/>
20 <!-- register the sql interceptor -->
21 <property name="hibernate.session_factory.interceptor" value="dst.ass1.jpa.interceptor.SQLInterceptor"/>