Subversion Repositories Integrator Subversion

Rev

Rev 106 | Rev 246 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 106 Rev 243
Line 2... Line 2...
2
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
2
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
3
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
4
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
5
     http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
5
     http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
6
    version="2.0">
6
    version="2.0">
7
-
 
8
 <persistence-unit name="sisPU" transaction-type="RESOURCE_LOCAL">
-
 
9
   <provider>org.hibernate.ejb.HibernatePersistence</provider>
-
 
10
-
 
11
   <properties>
-
 
12
           <!--  propriedades do hibernate -->
-
 
13
          <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
-
 
14
          <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
-
 
15
          <property name="hibernate.show_sql" value="true" />
-
 
16
          <property name="hibernate.format_sql" value="true" />
-
 
-
 
7
         <persistence-unit name="sisPU" transaction-type="RESOURCE_LOCAL">
-
 
8
                <provider>org.hibernate.ejb.HibernatePersistence</provider>
17
       
9
       
18
          <!--  atualiza o banco, gera as tabelas se for preciso -->
-
 
19
          <property name="hibernate.hbm2ddl.auto" value="false" />
-
 
20
   </properties>
-
 
21
 </persistence-unit>
-
 
22
</persistence>
10
                <properties>
-
 
11
                        <!--  propriedades do hibernate -->
-
 
12
                        <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
-
 
13
                        <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
-
 
14
                        <property name="hibernate.show_sql" value="true" />
-
 
15
                        <property name="hibernate.format_sql" value="true" />
-
 
16
                        <property name="hibernate.max_fetch_depth" value="0" />
-
 
17
                       
-
 
18
                        <!-- 
-
 
19
                        <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/espacocase" />
-
 
20
                        <property name="hibernate.connection.username" value="espacoc_sc_sec" />
-
 
21
                        <property name="hibernate.connection.password" value="espaco10" />
-
 
22
                        -->
-
 
23
                       
-
 
24
                        <property name="hibernate.connection.url" value="jdbc:postgresql://127.0.0.1:5432/espacoc_db" />
-
 
25
                        <property name="hibernate.connection.username" value="espacoc_sc_sec" />
-
 
26
                        <property name="hibernate.connection.password" value="espaco10" />
-
 
27
                       
-
 
28
                       
-
 
29
                        <property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />
-
 
30
                        <property name="hibernate.c3p0.min_size" value="1" />
-
 
31
                        <property name="hibernate.c3p0.max_size" value="30" />
-
 
32
                        <property name="hibernate.c3p0.acquire_increment" value="1" />
-
 
33
                        <property name="hibernate.c3p0.max_statements" value="50" />
-
 
34
                        <property name="hibernate.c3p0.timeout" value="1800" />
-
 
35
                        <property name="hibernate.c3p0.numHelperThreads" value="2" />
-
 
36
                       
-
 
37
                        <!--  atualiza o banco, gera as tabelas se for preciso -->
-
 
38
                        <property name="hibernate.hbm2ddl.auto" value="false" />
-
 
39
                </properties>
-
 
40
</persistence-unit>
-
 
41
</persistence>
-
 
42
<!-- 
-
 
43
<Resource name="jdbc/sisEC3" auth="Container"
-
 
44
    type="com.mchange.v2.c3p0.ComboPooledDataSource"
-
 
45
    factory="org.apache.naming.factory.BeanFactory"
-
 
46
    maxPoolSize="20"
-
 
47
    minPoolSize="5"
-
 
48
    maxIdleTime="3000"
-
 
49
    acquireIncrement="1"
-
 
50
    username="espacoc_sc_sec"
-
 
51
    password="espaco10"
-
 
52
    driverClassName="org.postgresql.Driver"
-
 
53
    url="jdbc:postgresql://localhost:5432/espacocase"
-
 
54
/>
-
 
55
 -->