Advertisement
Guest User

persistence

a guest
Nov 4th, 2012
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement