码迷,mamicode.com
首页 > Web开发 > 详细

Hibernate的配置文件hibernate.cfg.xml

时间:2015-07-12 09:43:45      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:hibernate   配置文件   

<?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>
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="connection.url">jdbc:mysql://localhost:3306/odysseia</property>
        <property name="connection.username">root</property>
        <property name="connection.password">123456</property>
        <property name="myeclipse.connection.profile">MYSQL</property>
        <property name="jdbc.use_scrollable_resultset">false</property>
        <property name="show_sql">true</property>
        <mapping resource="com/topcheer/com/bean/xml/Users.hbm.xml" />
    </session-factory>
</hibernate-configuration>

版权声明:本文为博主原创文章,未经博主允许不得转载。

Hibernate的配置文件hibernate.cfg.xml

标签:hibernate   配置文件   

原文地址:http://blog.csdn.net/u010999240/article/details/46845493

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!