Hibernate配置连接SQL SERVER2000

来源:互联网 发布:c语言编译过程 编辑:程序博客网 时间:2024/06/02 07:28
  1. <!---->xml version='1.0' encoding='utf-8'?>  
  2. <!---->
  3. "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">  
  4.   
  5. <hibernate-configuration>  
  6.   
  7.     <session-factory>  
  8.   
  9.         <!---->  
  10.         <!---->  
  11.         <property name="hibernate.query.substitutions">true 1, false 0, yes 'Y', no 'N'property>  
  12.         <!---->  
  13.         <!---->  
  14.         <!---->  
  15.   
  16.         <property name="dialect">net.sf.hibernate.dialect.SQLServerDialectproperty>  
  17.         <!---->  
  18.         <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driverproperty>  
  19.         <!---->  
  20.         <property name="hibernate.connection.url">jdbc:jtds:sqlserver://10.64.86.34:1433/eipproperty>  
  21.         <!---->  
  22.         <property name="hibernate.connection.username">saproperty>  
  23.         <property name="hibernate.connection.password">capinfoproperty>  
  24.         <!---->  
  25.         <property name="connection.pool_size">2property>  
  26.         <property name="statement_cache.size">25property>  
  27.  
  28.         <!---->  
  29.         <property name="connection.provider_class">net.sf.hibernate.connection.DriverManagerConnectionProviderproperty>  
  30.         <!---->  
  31.         <property name="transaction.factory_class">net.sf.hibernate.transaction.JDBCTransactionFactoryproperty>  
  32.         <!---->  
  33.         <property name="show_sql">trueproperty>  
  34.         <!---->  
  35.         <property name="jdbc.fetch_size">50property>  
  36.         <!---->  
  37.         <property name="jdbc.batch_size">25property>  
  38.         <!---->  
  39.         <property name="hibernate.jdbc.use_scrollable_resultset">falseproperty>  
  40.         <!---->  
  41.         <property name="jdbc.use_streams_for_binary">trueproperty>  
  42.         <!---->  
  43.         <property name="use_outer_join">trueproperty>  
  44.   
  45.            
  46.         <!---->  
  47.         <property name="max_fetch_depth">1property>  
  48.         <!---->  
  49.         <property name="cache.provider_class">net.sf.hibernate.cache.HashtableCacheProviderproperty>  
  50.         <!---->  
  51.         <property name="hibernate.cache.use_query">trueproperty>  
  52.   
  53.         <!---->  
  54.         <!---->  
  55.         <mapping resource="com/capinfo/edu/usersys/UserObject.hbm.xml" />  
  56.     session-factory>  
  57.   
  58. hibernate-configuration>  
原创粉丝点击