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

Untitled

By: a guest on Feb 14th, 2011  |  syntax: Bash  |  size: 0.91 KB  |  views: 80  |  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 xmlns="http://java.sun.com/xml/ns/persistence"
  3.   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.   version="2.0">
  6.   <persistence-unit name="example" transaction-type="JTA">
  7.     <provider>org.hibernate.ejb.HibernatePersistence</provider>
  8.     <jta-data-source> java:/DefaultDS </jta-data-source>
  9.     <!--
  10.     <jta-data-source> jdbc/mysql </jta-data-source>
  11.     <jta-data-source> java:app/Application_Level_DataSource </jta-data-source>
  12.      -->
  13.     <exclude-unlisted-classes>false</exclude-unlisted-classes>
  14.     <properties>
  15.       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  16.       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
  17.     </properties>
  18.   </persistence-unit>
  19. </persistence>
clone this paste RAW Paste Data