
persistence.xml
By: a guest on
Sep 27th, 2011 | syntax:
None | size: 1.82 KB | views:
46 | expires: Never
<?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 named 'integration-with-RESOURCE_LOCAL' is used from
unit tests where the test itself controls the transaction management, hence
the transaction-type RESOURCE_LOCAL -->
<persistence-unit name="integration-with-RESOURCE_LOCAL"
transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>com.tracetracker.tix.domain.common.AbstractNodeData</class>
<class>com.tracetracker.tix.domain.epcis.BizTrans</class>
<class>com.tracetracker.tix.domain.epcis.EPC</class>
<class>com.tracetracker.tix.domain.epcis.Event</class>
<class>com.tracetracker.tix.domain.epcis.Extension</class>
<class>com.tracetracker.tix.domain.epcis.ExtensionAttr</class>
<class>com.tracetracker.tix.domain.epcis.Vocabulary</class>
<class>com.tracetracker.tix.domain.epcis.VocabularyElement</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<!-- HSQLDB properties -->
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
<property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />
<property name="hibernate.connection.username" value="sa" />
<property name="hibernate.connection.password" value="" />
<property name="hibernate.connection.url" value="jdbc:hsqldb:mem:tix" />
<property name="hibernate.showSql" value="true" />
</properties>
</persistence-unit>
</persistence>