Hibernateプロファイルのmysql
1546 ワード
<?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>
<!-- Database connection settings -->
<!-- -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<!-- url -->
<property name="connection.url">jdbc:mysql://localhost:3306/hubin</property>
<property name="connection.username">root</property>
<property name="connection.password"></property>
<!-- SQL dialect -->
<!-- . -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Echo all executed SQL to stdout -->
<!-- . sql -->
<property name="show_sql">true</property>
<!-- -->
<property name="format_sql">true</property>
<!-- -->
<property name="hbm2ddl.auto">update</property>
<!-- -->
<mapping resource="com/hubin/entity/Users.hbm.xml"/>
</session-factory>
</hibernate-configuration>