狼爱上狸

我胡汉三又回来了

hibernate3+mssql2000+tomcat5.5.20的hibernate.cfg.xml

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

<!-- DO NOT EDIT: This is a generated file that is synchronized -->
<!-- by MyEclipse Hibernate tool integration.                   -->
<hibernate-configuration>

    <session-factory>
        <!-- properties -->
        <property name="connection.username">username</property>
        <property name="connection.url">jdbc:microsoft:sqlserver://localhost:1433;databaseName=test</property>
        <property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
        <property name="connection.password">password</property>
        <property name="connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>

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

    </session-factory>

</hibernate-configuration>

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


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


网站导航: