Commit d9338bfcc28d9452ecf13b16fbf88804b69bae04
1 parent
78cd1e22
test: persistence.xml für TestDS glattgezogen
Showing
1 changed file
with
2 additions
and
7 deletions
src/main/resources/META-INF/persistence.xml
1 | <persistence version="2.0" | 1 | <persistence version="2.0" |
2 | xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 2 | xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | 3 | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> |
4 | + | ||
4 | <persistence-unit name="swXercisePU" transaction-type="JTA"> | 5 | <persistence-unit name="swXercisePU" transaction-type="JTA"> |
5 | <jta-data-source>java:jboss/datasources/swXerciseDS</jta-data-source> | 6 | <jta-data-source>java:jboss/datasources/swXerciseDS</jta-data-source> |
6 | <properties> | 7 | <properties> |
8 | + <property name="wildfly.jpa.default-unit" value="true"/> | ||
7 | <!-- property name="hibernate.hbm2ddl.auto" value="create-drop" / --> | 9 | <!-- property name="hibernate.hbm2ddl.auto" value="create-drop" / --> |
8 | <property name="hibernate.hbm2ddl.auto" value="update" /> | 10 | <property name="hibernate.hbm2ddl.auto" value="update" /> |
9 | </properties> | 11 | </properties> |
@@ -25,13 +27,6 @@ | @@ -25,13 +27,6 @@ | ||
25 | <!--<property name="hibernate.hbm2ddl.auto" value="create-drop" / --> | 27 | <!--<property name="hibernate.hbm2ddl.auto" value="create-drop" / --> |
26 | <property name="hibernate.connection.useUnicode" value="true" /> | 28 | <property name="hibernate.connection.useUnicode" value="true" /> |
27 | <property name="hibernate.connection.characterEncoding" value="UTF-8" /> | 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 | <property name="hibernate.ejb.entitymanager_factory_name" value="swXerciseTestPU" /> | 30 | <property name="hibernate.ejb.entitymanager_factory_name" value="swXerciseTestPU" /> |
36 | </properties> | 31 | </properties> |
37 | </persistence-unit> | 32 | </persistence-unit> |