六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 82|回复: 0

sql2000与sql2005的hibernate-configuration

[复制链接]

升级  25.67%

79

主题

79

主题

79

主题

举人

Rank: 3Rank: 3

积分
277
 楼主| 发表于 2013-1-13 19:00:38 | 显示全部楼层 |阅读模式
<?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>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表