狼爱上狸

我胡汉三又回来了

hibernate3+mysql5.0+tomcat5.5.20的hibernate.cfg.xml文件

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
    PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

    <session-factory>


        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>

        <property name="hibernate.connection.url">jdbc:mysql:///test</property>

        <property name="hibernate.connection.username">username</property>

        <property name="hibernate.connection.password">password</property>

        <property name="hibernate.connection.pool_size">100</property>

        <property name="show_sql">false</property>

        <property name="dialect"> org.hibernate.dialect.MySQLDialect</property>

        <!-- Mapping files -->
        <mapping resource="Train.hbm.xml"/>

    </session-factory>

</hibernate-configuration>

posted on 2006-10-24 15:25 狼爱上狸 阅读(353) 评论(0)  编辑  收藏 所属分类: Hibernate


只有注册用户登录后才能发表评论。


网站导航: