Blame |
Last modification |
View Log
| RSS feed
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/teste?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true</property>
<property name="hibernate.connection.autoReconnect">true</property>
<property name="hibernate.connection.autoReconnectForPools">true</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="show_sql">false</property>
<property name="current_session_context_class">thread</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<!-- <property name="hibernate.connection.pool_size">3</property> -->
<mapping resource="pt/estgp/es/exemplos/hibernate/Pagina.hbm.xml"/>
<mapping resource="pt/estgp/es/exemplos/hibernate/Seccao.hbm.xml"/>
<mapping resource="pt/estgp/es/exemplos/hibernate/User.hbm.xml"/>
<mapping resource="pt/estgp/es/exemplos/hibernate/UserSession.hbm.xml"/>
</session-factory>
</hibernate-configuration>