Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: None  |  size: 1.79 KB  |  hits: 6  |  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"
  3.              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
  5.              http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  6.  
  7.     <persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">
  8.         <provider>org.hibernate.ejb.HibernatePersistence</provider>
  9.  
  10.         <class>org.goout.model.Event</class>
  11.         <class>org.goout.model.Venue</class>
  12.         <class>org.goout.model.Performer</class>
  13.         <class>org.goout.model.User</class>
  14.         <class>org.goout.model.Schedule</class>
  15.         <class>org.goout.model.embedded.Tag</class>
  16.  
  17.         <properties>
  18.  
  19.             <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
  20.             <property name="hiberante.connection.url" value="jdbc:mysql://localhost:3306/GoOut2"/>
  21.             <property name="hibernate.connection.username" value=""/>
  22.             <property name="hibernate.connection.password" value=""/>
  23.             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
  24.             <property name="hibernate.hbm2ddl.auto" value="update"/>
  25.  
  26.         <!--
  27.             <property name="hibernate.hbm2ddl.auto" value="update"/>
  28.  
  29.             <property name="hibernate.connection.url" value="jdbc:postgresql://localhost/postgres"/>
  30.             <property name="hibernate.connection.username" value=""/>
  31.             <property name="hibernate.connection.password" value=""/>
  32.             <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
  33.             <property name="hibernate.show_sql" value="true"/>
  34.         -->
  35.         </properties>
  36.     </persistence-unit>
  37. </persistence>