Subversion Repositories bacoAlunos

Rev

Go to most recent revision | 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.url">jdbc:mysql://localhost:3306/teste</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">daniel1998</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"/>
    </session-factory>
</hibernate-configuration>