<?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>
<!-- local connection properties -->
<property name="hibernate.connection.url">
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=t <!-- sql 2000 -->
<!-- jdbc:sqlserver://localhost:1433;DatabaseName=t sql 2005-->
</property>
<property name="hibernate.connection.driver_class">
com.microsoft.jdbc.sqlserver.SQLServerDriver <!-- sql 2000 -->
<!-- sql 2005 com.microsoft.sqlserver.jdbc.SQLServerDriver -->
</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password">sa</property>
<!-- property name="hibernate.connection.pool_size"></property -->
<!-- dialect for DB2 --><!--
<property name="dialect">
org.hibernate.dialect.DB2Dialect
</property>
--><property name="hibernate.show_sql">true</property>
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<mapping resource="Person.hbm.xml" />
</session-factory>
</hibernate-configuration>
sql2000与sql2005的hibernate-configuration
最新推荐文章于 2018-07-30 16:30:19 发布