<hibernate-configuration>
<session-factory>
<!-- username url -->
<property name="connection.username">hibernate</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/testdb
</property>
<!-- -->
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<!-- DB Driver's -->
<property name="myeclipse.connection.profile">
mysqldriver
</property>
<!-- -->
<property name="connection.password">123456</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<!-- hibernate sql -->
<property name="show_sql">true</property>
<!-- Specify location of Hibernate mapping files -->
<mapping resource="cn/xhu/wy/hibernate/demo01/Person.hbm.xml" />
</session-factory>
</hibernate-configuration>