diff options
| author | Devan Goodwin <dgoodwin@redhat.com> | 2009-11-05 16:34:34 -0400 |
|---|---|---|
| committer | Devan Goodwin <dgoodwin@redhat.com> | 2009-11-05 16:34:34 -0400 |
| commit | de7c4e4d08406a3a77f85c9860a459e1ebe65542 (patch) | |
| tree | 5eae6ea89f25b1a2c009abb754093c2f269bf8d5 /proxy/code/src | |
| parent | 4dbb2984151e4964fb8919ad6631e5abf579de8e (diff) | |
| download | candlepin-de7c4e4d08406a3a77f85c9860a459e1ebe65542.tar.gz candlepin-de7c4e4d08406a3a77f85c9860a459e1ebe65542.tar.xz candlepin-de7c4e4d08406a3a77f85c9860a459e1ebe65542.zip | |
Add deps for Hibernate, Annotations, and EntityManager.
Diffstat (limited to 'proxy/code/src')
| -rw-r--r-- | proxy/code/src/META-INF/persistence.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/proxy/code/src/META-INF/persistence.xml b/proxy/code/src/META-INF/persistence.xml new file mode 100644 index 0000000..881b514 --- /dev/null +++ b/proxy/code/src/META-INF/persistence.xml @@ -0,0 +1,21 @@ +<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="test" transaction-type="RESOURCE_LOCAL"> + <provider>org.hibernate.ejb.HibernatePersistence</provider> + <exclude-unlisted-classes>true</exclude-unlisted-classes> + <properties> + <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:unit-testing-jpa"/> + <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/> + <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> + <property name="hibernate.hbm2ddl.auto" value="create-drop"/> + <property name="hibernate.connection.username" value="sa"/> + <property name="hibernate.connection.password" value=""/> + </properties> + + + </persistence-unit> + +</persistence> |
