hibernate-configuration123

1
2
3
4
5
6
7
8
9
10
11
12
13
<hibernate-configuration>
<session-factory>
<propertyname="connection.driver_class">com.mysql.jdbc.Driver</property>
<propertyname="connection.url">jdbc:mysql://localhost:3306/hibernate-1</property>
<propertyname="connection.username">root</property>
<propertyname="connection.password">root</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<propertyname="show_sql">true</property>
<propertyname="format_sql">true</property>
<propertyname="hbm2ddl.auto">create</property>
<mappingresource="com/yuan/model/Customer.hbm.xml"/>
</session-factory>
</hibernate-configuration>