Subversion Repositories bacoAlunos

Rev

Rev 2060 | Blame | Compare with Previous | 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.autoReconnect">true</property>
        <property name="hibernate.connection.autoReconnectForPools">true</property>
        <property name="hibernate.connection.autocommit">false</property>

        <property name="current_session_context_class">thread</property>

        <property name="hibernate.connection.url">@database.connection.url@</property>
        <property name="hibernate.connection.username">@database.username@</property>
        <property name="hibernate.connection.password">@database.password@</property>
        <property name="show_sql">@hibernate.show.sql@</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"/>
        <mapping resource="pt/estgp/es/exemplos/hibernate/Componente.hbm.xml"/>
       
    </session-factory>
</hibernate-configuration>