Rev 2009 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2009 | es | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | |||
3 | <!DOCTYPE hibernate-configuration PUBLIC |
||
4 | "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
||
5 | "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
||
6 | |||
7 | <hibernate-configuration> |
||
8 | <session-factory> |
||
9 | <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> |
||
10 | <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> |
||
2049 | es | 11 | |
2009 | es | 12 | <property name="hibernate.connection.autoReconnect">true</property> |
13 | <property name="hibernate.connection.autoReconnectForPools">true</property> |
||
14 | <property name="hibernate.connection.autocommit">false</property> |
||
2049 | es | 15 | |
2009 | es | 16 | <property name="current_session_context_class">thread</property> |
2049 | es | 17 | |
2009 | es | 18 | <property name="hibernate.connection.url">@database.connection.url@</property> |
19 | <property name="hibernate.connection.username">@database.username@</property> |
||
20 | <property name="hibernate.connection.password">@database.password@</property> |
||
21 | <property name="show_sql">@hibernate.show.sql@</property> |
||
22 | |||
2049 | es | 23 | <!-- <property name="hibernate.connection.pool_size">3</property> --> |
2009 | es | 24 | |
25 | <mapping resource="pt/estgp/es/exemplos/hibernate/Pagina.hbm.xml"/> |
||
26 | <mapping resource="pt/estgp/es/exemplos/hibernate/Seccao.hbm.xml"/> |
||
27 | <mapping resource="pt/estgp/es/exemplos/hibernate/User.hbm.xml"/> |
||
28 | <mapping resource="pt/estgp/es/exemplos/hibernate/UserSession.hbm.xml"/> |
||
2049 | es | 29 | |
2009 | es | 30 | </session-factory> |
31 | </hibernate-configuration> |