Commit d9338bfcc28d9452ecf13b16fbf88804b69bae04

Authored by Thomas Ziemer
1 parent 78cd1e22

test: persistence.xml für TestDS glattgezogen

src/main/resources/META-INF/persistence.xml
1 1 <persistence version="2.0"
2 2 xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 3 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  4 +
4 5 <persistence-unit name="swXercisePU" transaction-type="JTA">
5 6 <jta-data-source>java:jboss/datasources/swXerciseDS</jta-data-source>
6 7 <properties>
  8 + <property name="wildfly.jpa.default-unit" value="true"/>
7 9 <!-- property name="hibernate.hbm2ddl.auto" value="create-drop" / -->
8 10 <property name="hibernate.hbm2ddl.auto" value="update" />
9 11 </properties>
... ... @@ -25,13 +27,6 @@
25 27 <!--<property name="hibernate.hbm2ddl.auto" value="create-drop" / -->
26 28 <property name="hibernate.connection.useUnicode" value="true" />
27 29 <property name="hibernate.connection.characterEncoding" value="UTF-8" />
28   - <property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />
29   - <property name="hibernate.c3p0.min_size" value="2" />
30   - <property name="hibernate.c3p0.max_size" value="100" />
31   - <property name="hibernate.c3p0.timeout" value="10" />
32   - <property name="hibernate.c3p0.max_statements" value="100" />
33   - <property name="hibernate.c3p0.idle_test_period" value="30" />
34   - <property name="hibernate.temp.use_jdbc_metadata_defaults" value="false" />
35 30 <property name="hibernate.ejb.entitymanager_factory_name" value="swXerciseTestPU" />
36 31 </properties>
37 32 </persistence-unit>
... ...