Created
October 25, 2013 19:16
-
-
Save ggdio/7160274 to your computer and use it in GitHub Desktop.
Persistence.xml file for datasource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
version="1.0"> | |
<persistence-unit name="user-unit"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<jta-data-source>java:jboss/jdbc/ExampleDS</jta-data-source> | |
<properties> | |
<property name="hibernate.archive.autodetection" value="class" /> | |
<property name="hibernate.show_sql" value="true" /> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" /> | |
<property name="hibernate.hbm2ddl.auto" value="validate" /> | |
<property name="hibernate.c3p0.min_size" value="5" /> | |
<property name="hibernate.c3p0.max_size" value="20" /> | |
<property name="hibernate.c3p0.timeout" value="300" /> | |
<property name="hibernate.c3p0.max_statements" value="50" /> | |
<property name="hibernate.c3p0.idle_test_period" value="3000" /> | |
</properties> | |
</persistence-unit> | |
</persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment