META-INF.persistence.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guice-jpa-junit-runner Show documentation
Show all versions of guice-jpa-junit-runner Show documentation
A JUnit Runner allowing Guice-based testing with JPA Hibernate4-based. Each test method is running with a clean Injector instance.
<?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_2_0.xsd" version="2.0" > <persistence-unit name="GuicePersistTest" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <properties> <property name="javax.persistence.validation.mode" value="DDL, CALLBACK" /> <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:testdb" /> <property name="javax.persistence.jdbc.user" value="sa" /> <property name="javax.persistence.jdbc.password" value="" /> <property name="hibernate.archive.autodetection" value="class"/> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> <property name="org.hibernate.flushMode" value="COMMIT"/> <property name="hibernate.jdbc.batch_size" value="1000"/> <property name="hibernate.jdbc.fetch_size" value="1000"/> <property name="hibernate.jdbc.batch_versioned_data" value="true"/> <property name="hibernate.order_inserts" value="true"/> <property name="hibernate.order_updates" value="true"/> <property name="hibernate.cache.use_query_cache" value="false"/> <property name="hibernate.cache.use_second_level_cache" value="false"/> <property name="hibernate.c3p0.min_size" value="10"/> <!-- <property name="hibernate.c3p0.max_size" value="20"/> <property name="hibernate.c3p0.acquire_increment" value="1"/> <property name="hibernate.c3p0.idle_test_period" value="3000"/> <property name="hibernate.c3p0.max_statements" value="50"/> <property name="hibernate.c3p0.timeout" value="1800"/> --> <!-- <property name="hibernate.show_sql" value="true" /> <property name="hibernate.format_sql" value="true" /> --> </properties> </persistence-unit> </persistence>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy