konhon

忘掉過去,展望未來。找回自我,超越自我。
逃避不一定躲的过, 面对不一定最难过, 孤单不一定不快乐, 得到不一定能长久, 失去不一定不再拥有, 可能因为某个理由而伤心难过, 但我却能找个理由让自己快乐.

Google

BlogJava 首页 新随笔 联系 聚合 管理
  203 Posts :: 0 Stories :: 61 Comments :: 0 Trackbacks
<! DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
>

< hibernate-configuration >
  
< session-factory >
    
< property  name ="hibernate.connection.url" >
       jdbc:Microsoft:sqlserver://192.168.10.236:1433;databaseName=Sample
    
</ property >
    
< property  name ="hibernate.connection.driver_class" >
       com.microsoft.jdbc.sqlserver.SQLServerDriver
    
</ property >
    
< property  name ="hibernate.connection.username" >
       sa
    
</ property >
    
< property  name ="hibernate.connection.password" >
       55
    
</ property >
    
< property  name ="dialect" >
       org.hibernate.dialect.SQLServerDialect
    
</ property >
    
< property  name ="hibernate.show_sql" >
       true
    
</ property >
    
< property  name ="hibernate.transaction.factory_class" >
       org.hibernate.transaction.JDBCTransactionFactory
    
</ property >
    
< mapping  resource ="TItem.hbm.xml" />     
  
</ session-factory >
</ hibernate-configuration >
posted on 2006-04-05 21:42 konhon 优华 阅读(3935) 评论(2)  编辑  收藏 所属分类: Hibernate

Feedback

# re: 標准的Hibernate.cfg.xml文件 SQL Server 2008-09-25 04:25 cdxiha
亲爱的朋友~我杂连接不起啦?报的是url错误请问是什么问题,我导入了三个包的
  回复  更多评论
  

# re: 標准的Hibernate.cfg.xml文件 SQL Server 2009-03-06 03:22 阿华
只需要一个jar包就行了,jtds-1.2.2.jar。  回复  更多评论
  


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


网站导航: