hibernate.cfg.xml

时间:2014-07-16 20:23:19   收藏:0   阅读:212
 1 <?xml version=‘1.0‘ encoding=‘UTF-8‘?>
 2 <!DOCTYPE hibernate-configuration PUBLIC
 3           "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
 4           "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 5 
 6 <hibernate-configuration>
 7 
 8     <session-factory>
 9         <property name="connection.url">jdbc:mysql://localhost:3306/hibernate</property>
10         <property name="connection.username">root</property>
11         <property name="connection.password">root</property>
12         <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
13         
14         <!-- 方言 对应的是org.hiberbate.Dialect  -->
15         <property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>
16         <property name="show_sql">true</property>
17         
18         <mapping resource="Team.hbm.xml"/>
19         
20     </session-factory>
21 
22 </hibernate-configuration>

 

hibernate.cfg.xml,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!