<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
        PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
    <session-factory>

        <property name="hibernate.connection.driver_class">
            org.gjt.mm.mysql.Driver
        </property>
        <property name="hibernate.connection.url">
            jdbc:mysql://127.0.0.1:3306/pruebaHiber</property>
        <property name="hibernate.connection.username">root</property>
        <property name="hibernate.connection.password"></property>

        <property name="connection.pool_size">5</property>
        		
        <property name="dialect">
            org.hibernate.dialect.MySQLDialect
        </property>
               
        <!-- Enable Hibernate's automatic session context management -->
        <property name="current_session_context_class">thread</property>

        <!-- Echo all executed SQL to stdout -->
        <property name="show_sql">true</property>
          
        <!--   
         <property name="hbm2ddl.auto">create</property>
        -->
                
        <mapping class="com.olmedos.entidad.Ciudad" />
        <mapping class="com.olmedos.entidad.Provincia" />
        <mapping class="com.olmedos.entidad.Phone" />
        <mapping class="com.olmedos.entidad.Person" />
               
    </session-factory>
</hibernate-configuration>