Want more features on Pastebin? Sign Up, it's FREE!
Guest

persistence-arquillian.xml

By: a guest on Sep 27th, 2011  |  syntax: None  |  size: 1.97 KB  |  views: 117  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence version="2.0"
  3.         xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  5.  
  6.         <!-- Persistence-unit named 'integration-with-JTA' is used from Arquillian
  7.                 tests where Arquillian starts an embedded JBoss 6 container and run the tests
  8.                 against the container. The container controls the transaction management
  9.                 itself, hence the transaction-type JTA -->
  10.         <persistence-unit name="integration-with-JTA"
  11.                 transaction-type="JTA">
  12.                 <provider>org.hibernate.ejb.HibernatePersistence</provider>
  13.                 <jta-data-source>java:/DefaultDS</jta-data-source>
  14.                 <class>com.tracetracker.tix.domain.common.AbstractNodeData</class>
  15.                 <class>com.tracetracker.tix.domain.epcis.VocabularyElement</class>
  16.                 <class>com.tracetracker.tix.domain.epcis.Extension</class>
  17.                 <class>com.tracetracker.tix.domain.epcis.Vocabulary</class>
  18.                 <class>com.tracetracker.tix.domain.epcis.ExtensionAttr</class>
  19.                 <class>com.tracetracker.tix.domain.epcis.BizTrans</class>
  20.                 <class>com.tracetracker.tix.domain.epcis.EPC</class>
  21.                 <class>com.tracetracker.tix.domain.epcis.Event</class>
  22.                 <exclude-unlisted-classes>true</exclude-unlisted-classes>
  23.  
  24.                 <!-- HSQLDB properties if you want to run the tests against an in-memory
  25.                         database. This is default! -->
  26.                 <properties>
  27.                         <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
  28.                         <property name="hibernate.hbm2ddl.auto" value="create-drop" />
  29.                         <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />
  30.                         <property name="hibernate.connection.username" value="sa" />
  31.                         <property name="hibernate.connection.password" value="" />
  32.                         <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:tix" />
  33.                         <property name="hibernate.showSql" value="true" />
  34.                 </properties>
  35.         </persistence-unit>
  36.  
  37. </persistence>
  38.  
clone this paste RAW Paste Data