Go to most recent revision | Details | 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> |
||
11 | <!--<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/teste</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">daniel1998</property>--> |
||
20 | <property name="hibernate.connection.url">@database.connection.url@</property> |
||
21 | <property name="hibernate.connection.username">@database.username@</property> |
||
22 | <property name="hibernate.connection.password">@database.password@</property> |
||
23 | <property name="show_sql">@hibernate.show.sql@</property> |
||
24 | |||
25 | <!--<property name="hibernate.connection.pool_size">3</property> --> |
||
26 | |||
27 | <mapping resource="pt/estgp/es/exemplos/hibernate/Pagina.hbm.xml"/> |
||
28 | <mapping resource="pt/estgp/es/exemplos/hibernate/Seccao.hbm.xml"/> |
||
29 | <mapping resource="pt/estgp/es/exemplos/hibernate/User.hbm.xml"/> |
||
30 | <mapping resource="pt/estgp/es/exemplos/hibernate/UserSession.hbm.xml"/> |
||
31 | </session-factory> |
||
32 | </hibernate-configuration> |