Guest User

persistence

a guest
Nov 4th, 2012
347
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <!-- Tomcat + PostgreSQL -->
  2.     <persistence-unit name="default">
  3.         <non-jta-data-source>
  4.             java:comp/env/jdbc/InvoicingDS
  5.         </non-jta-data-source>
  6.         <class>org.openxava.session.GalleryImage</class>
  7.         <properties>
  8.             <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
  9.         </properties>
  10.     </persistence-unit>
  11.     <!-- JUnit PostgreSQL -->
  12.     <persistence-unit name="junit">
  13.         <properties>
  14.             <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
  15.             <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
  16.             <property name="hibernate.connection.url" value="jdbc:postgresql://localhost/invoicing" />
  17.             <property name="hibernate.connection.username" value="postgres" />
  18.             <property name="hibernate.connection.password" value="qwerty" />
  19.         </properties>
  20.     </persistence-unit>
RAW Paste Data