]> git.somenet.org - pub/jan/dst18.git/blob - ass1-jpa/src/main/resources/META-INF/persistence.xml
Make ElasticityControllerTest more tolernat to edge cases
[pub/jan/dst18.git] / ass1-jpa / src / main / resources / META-INF / persistence.xml
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"
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"
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"/>
21
22             <!-- register the sql interceptor -->
23             <property name="hibernate.session_factory.interceptor" value="dst.ass1.jpa.interceptor.SQLInterceptor"/>
24         </properties>
25     </persistence-unit>
26 </persistence>