Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2062 | 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> |
||
11 | <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/teste?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true</property> |
||
12 | <property name="hibernate.connection.autoReconnect">true</property> |
||
13 | <property name="hibernate.connection.autoReconnectForPools">true</property> |
||
14 | <property name="hibernate.connection.autocommit">false</property> |
||
15 | <property name="show_sql">false</property> |
||
16 | <property name="current_session_context_class">thread</property> |
||
17 | |||
18 | <property name="hibernate.connection.username">root</property> |
||
19 | <property name="hibernate.connection.password"></property> |
||
20 | |||
21 | <!-- <property name="hibernate.connection.pool_size">3</property> --> |
||
22 | |||
23 | <mapping resource="pt/estgp/es/exemplos/hibernate/Pagina.hbm.xml"/> |
||
24 | <mapping resource="pt/estgp/es/exemplos/hibernate/Seccao.hbm.xml"/> |
||
25 | <mapping resource="pt/estgp/es/exemplos/hibernate/User.hbm.xml"/> |
||
26 | <mapping resource="pt/estgp/es/exemplos/hibernate/UserSession.hbm.xml"/> |
||
27 | </session-factory> |
||
28 | |||
29 | </hibernate-configuration> |