Subversion Repositories bacoAlunos

Rev

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

Rev 2005 Rev 2060
Line 6... Line 6...
6
 
6
 
7
<hibernate-configuration>
7
<hibernate-configuration>
8
    <session-factory>
8
    <session-factory>
9
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
9
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
10
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
10
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
11
        <property name="hibernate.connection.url">@database.connection.url@</property>
-
 
-
 
11
 
12
        <property name="hibernate.connection.autoReconnect">true</property>
12
        <property name="hibernate.connection.autoReconnect">true</property>
13
        <property name="hibernate.connection.autoReconnectForPools">true</property>
13
        <property name="hibernate.connection.autoReconnectForPools">true</property>
14
        <property name="hibernate.connection.autocommit">false</property>
14
        <property name="hibernate.connection.autocommit">false</property>
15
        <property name="show_sql">@hibernate.show.sql@</property>
-
 
-
 
15
 
16
        <property name="current_session_context_class">thread</property>
16
        <property name="current_session_context_class">thread</property>
17
 
17
 
-
 
18
        <property name="hibernate.connection.url">@database.connection.url@</property>
18
        <property name="hibernate.connection.username">@database.username@</property>
19
        <property name="hibernate.connection.username">@database.username@</property>
19
        <property name="hibernate.connection.password">@database.password@</property>
20
        <property name="hibernate.connection.password">@database.password@</property>
-
 
21
        <property name="show_sql">@hibernate.show.sql@</property>
20
 
22
 
21
<!--    <property name="hibernate.connection.pool_size">3</property> -->
23
<!--    <property name="hibernate.connection.pool_size">3</property> -->
22
 
24
 
23
        <mapping resource="pt/estgp/es/exemplos/hibernate/Pagina.hbm.xml"/>
25
        <mapping resource="pt/estgp/es/exemplos/hibernate/Pagina.hbm.xml"/>
24
        <mapping resource="pt/estgp/es/exemplos/hibernate/Seccao.hbm.xml"/>
26
        <mapping resource="pt/estgp/es/exemplos/hibernate/Seccao.hbm.xml"/>
25
        <mapping resource="pt/estgp/es/exemplos/hibernate/User.hbm.xml"/>
27
        <mapping resource="pt/estgp/es/exemplos/hibernate/User.hbm.xml"/>
26
        <mapping resource="pt/estgp/es/exemplos/hibernate/UserSession.hbm.xml"/>
28
        <mapping resource="pt/estgp/es/exemplos/hibernate/UserSession.hbm.xml"/>
-
 
29
       
27
    </session-factory>
30
    </session-factory>
28
 
-
 
29
</hibernate-configuration>
31
</hibernate-configuration>
30
32