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

persistence.xml

By: a guest on Sep 27th, 2011  |  syntax: None  |  size: 1.82 KB  |  views: 46  |  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" 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">
  3.         <!-- Persistence-unit named 'integration-with-RESOURCE_LOCAL' is used from
  4.                 unit tests where the test itself controls the transaction management, hence
  5.                 the transaction-type RESOURCE_LOCAL -->
  6.         <persistence-unit name="integration-with-RESOURCE_LOCAL"
  7.                 transaction-type="RESOURCE_LOCAL">
  8.                 <provider>org.hibernate.ejb.HibernatePersistence</provider>
  9.         <class>com.tracetracker.tix.domain.common.AbstractNodeData</class>
  10.         <class>com.tracetracker.tix.domain.epcis.BizTrans</class>
  11.         <class>com.tracetracker.tix.domain.epcis.EPC</class>
  12.         <class>com.tracetracker.tix.domain.epcis.Event</class>
  13.         <class>com.tracetracker.tix.domain.epcis.Extension</class>
  14.         <class>com.tracetracker.tix.domain.epcis.ExtensionAttr</class>
  15.         <class>com.tracetracker.tix.domain.epcis.Vocabulary</class>
  16.         <class>com.tracetracker.tix.domain.epcis.VocabularyElement</class>
  17.                 <exclude-unlisted-classes>true</exclude-unlisted-classes>
  18.  
  19.                 <!-- HSQLDB properties -->
  20.                 <properties>
  21.                         <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
  22.                         <property name="hibernate.hbm2ddl.auto" value="create-drop" />
  23.                         <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />
  24.                         <property name="hibernate.connection.username" value="sa" />
  25.                         <property name="hibernate.connection.password" value="" />
  26.                         <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:tix" />
  27.                         <property name="hibernate.showSql" value="true" />
  28.                 </properties>
  29.         </persistence-unit>
  30. </persistence>
  31.  
  32.  
clone this paste RAW Paste Data