summaryrefslogtreecommitdiffstats
path: root/proxy/code/src
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2009-11-05 16:34:34 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2009-11-05 16:34:34 -0400
commitde7c4e4d08406a3a77f85c9860a459e1ebe65542 (patch)
tree5eae6ea89f25b1a2c009abb754093c2f269bf8d5 /proxy/code/src
parent4dbb2984151e4964fb8919ad6631e5abf579de8e (diff)
downloadcandlepin-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.xml21
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>