Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

zcontact-data project added persistence unit

  • Loading branch information...
commit a7f1d2c1998667db312338708693f65bd13fab6c 1 parent add5bd3
@qza authored
View
13 zcontact-data/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence version="2.0" 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">
+ <persistence-unit name="zcontact-pu">
+ <properties>
+ <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
+ <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:spring"/>
+ <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>
+ <property name="hibernate.connection.username" value="zcontact"/>
+ <property name="hibernate.connection.password" value=""/>
+ <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+ </properties>
+ </persistence-unit>
+</persistence>
View
2  zcontact-data/src/main/resources/repository-context.xml
@@ -7,6 +7,6 @@
<import resource="infrastructure.xml" />
- <jpa:repositories base-package="com.acme.repository" />
+ <jpa:repositories base-package="org.zcontactdata.repository" />
</beans>
Please sign in to comment.
Something went wrong with that request. Please try again.