Subversion Repositories Integrator Subversion

Rev

Rev 246 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

<?xml version="1.0" encoding="UTF-8"?>
<persistence 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_2_0.xsd"

   version="2.0">
         <persistence-unit name="sisPU" transaction-type="RESOURCE_LOCAL">
                <provider>org.hibernate.ejb.HibernatePersistence</provider>
       
                <properties>
                        <!--  propriedades do hibernate -->
                        <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
                        <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
                        <property name="hibernate.show_sql" value="true" />
                        <property name="hibernate.format_sql" value="true" />
                        <property name="hibernate.max_fetch_depth" value="0" />
                       
                        <!--
                        <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/espacocase" />
                        <property name="hibernate.connection.username" value="espacoc_sc_sec" />
                        <property name="hibernate.connection.password" value="espaco10" />
                        -->
                       
                        <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/espacoc_db" />
                        <property name="hibernate.connection.username" value="espacoc_sc_sec" />
                        <property name="hibernate.connection.password" value="espaco10" />
                       
                        <property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />
                        <property name="hibernate.c3p0.min_size" value="1" />
                        <property name="hibernate.c3p0.max_size" value="20" />
                        <property name="hibernate.c3p0.acquire_increment" value="1" />
                        <property name="hibernate.c3p0.max_statements" value="30" />
                        <property name="hibernate.c3p0.timeout" value="1800" />
                        <property name="hibernate.c3p0.numHelperThreads" value="1" />
                       
                        <!--  atualiza o banco, gera as tabelas se for preciso -->
                        <property name="hibernate.hbm2ddl.auto" value="false" />
                </properties>
</persistence-unit>
</persistence>
<!--
<Resource name="jdbc/sisEC3" auth="Container"
   type="com.mchange.v2.c3p0.ComboPooledDataSource"
   factory="org.apache.naming.factory.BeanFactory"
   maxPoolSize="20"
   minPoolSize="5"
   maxIdleTime="3000"
   acquireIncrement="1"
   username="espacoc_sc_sec"
   password="espaco10"
   driverClassName="org.postgresql.Driver"
   url="jdbc:postgresql://localhost:5432/espacocase"
/>
-->