aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons/src/main/resources/persistence_template.xml
diff options
context:
space:
mode:
authorGerwin Gsenger <g.gsenger@datentechnik-innovation.at>2015-01-12 17:39:59 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2015-06-19 11:05:53 +0200
commit3d8ea79b6167a2e4784beaafe5596cc78519e358 (patch)
tree605f146c7eb7810e334f9418e1f27df9a48e95ca /id/server/moa-id-commons/src/main/resources/persistence_template.xml
parent4d16df7e7a3a893332248d20d032d23605eb091e (diff)
downloadmoa-id-spss-3d8ea79b6167a2e4784beaafe5596cc78519e358.tar.gz
moa-id-spss-3d8ea79b6167a2e4784beaafe5596cc78519e358.tar.bz2
moa-id-spss-3d8ea79b6167a2e4784beaafe5596cc78519e358.zip
fix hibernate setup
Diffstat (limited to 'id/server/moa-id-commons/src/main/resources/persistence_template.xml')
-rw-r--r--id/server/moa-id-commons/src/main/resources/persistence_template.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/id/server/moa-id-commons/src/main/resources/persistence_template.xml b/id/server/moa-id-commons/src/main/resources/persistence_template.xml
new file mode 100644
index 000000000..25092ff58
--- /dev/null
+++ b/id/server/moa-id-commons/src/main/resources/persistence_template.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<persistence version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
+http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <persistence-unit name="##generated">
+ <!-- <class>at.gv.egovernment.moa.id.commons.db.dao.config.UserDatabase</class> -->
+
+<!-- <properties>
+ C3p0 connection pooling configuration
+ <property name="hibernate.connection.provider_class" value="org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider"/>
+ <property name="hibernate.connection.provider_class" value="org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider"/>
+ <property name="acquireRetryDelay" value="5000"/>
+ <property name="breakAfterAcquireFailure" value="true"/>
+ <property name="checkoutTimeout" value="1"/>
+ <property name="testConnectionOnCheckin" value="1" />
+ </properties> -->
+ </persistence-unit>
+</persistence>