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

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>

你可能感兴趣的:(hibernate3+mssql2000+tomcat5.5.20的hibernate.cfg.xml)