You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.2 KiB

5 years ago
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.url">jdbc:mysql://localhost:3306/xianshu</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.username">root</property>
<property name="connection.password">123456</property>
<mapping resource="table/BookEntity.hbm.xml"/>
<mapping class="table.BookEntity"/>
<mapping resource="table/OrderEntity.hbm.xml"/>
<mapping class="table.OrderEntity"/>
<mapping resource="table/ShopcartEntity.hbm.xml"/>
<mapping class="table.ShopcartEntity"/>
<mapping resource="table/UserEntity.hbm.xml"/>
<mapping class="table.UserEntity"/>
<!-- <property name="connection.username"/> -->
<!-- <property name="connection.password"/> -->
<!-- DB schema will be updated if needed -->
<!-- <property name="hibernate.hbm2ddl.auto">update</property> -->
</session-factory>
</hibernate-configuration>