<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.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_1_0.xsd">
  <persistence-unit name="EmpresaJPAPU" transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <class>empresa.negocio.Departamento</class>
    <class>empresa.negocio.Dependente</class>
    <class>empresa.negocio.Empregado</class>
    <class>empresa.negocio.Projeto</class>
    <properties>
      <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
      <property name="hibernate.connection.username" value="postgres"/>
      <property name="hibernate.connection.password" value="postgres08"/>
      <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/EmpresaBD"/>     
      <!-- cache configuration -->
      <property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<!--
      <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
      <property name="hibernate.max_fetch_depth" value="3"/> 
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>      
-->      
   </properties>
  </persistence-unit>
</persistence>
