小嘴冰凉 发表于 2013-1-13 19:00:38

sql2000与sql2005的hibernate-configuration

<?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=tsql 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>
页: [1]
查看完整版本: sql2000与sql2005的hibernate-configuration