]> git.somenet.org - pub/jan/dst18.git/blob - ass1-jpa/src/main/resources/META-INF/persistence.xml
Fix dst18-vagrantfile to download the box by itself
[pub/jan/dst18.git] / ass1-jpa / src / main / resources / META-INF / persistence.xml
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"
5              version="2.0">
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>
10     <properties>
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"/>
19
20       <!-- register the sql interceptor -->
21       <property name="hibernate.session_factory.interceptor" value="dst.ass1.jpa.interceptor.SQLInterceptor"/>
22     </properties>
23   </persistence-unit>
24 </persistence>