wilin
          wilin
          posts - 6,comments - 3,trackbacks - 0



          hibernate.cfg.xml
           1 <?xml version="1.0" encoding="utf-8"?>
           2 <!DOCTYPE hibernate-configuration PUBLIC
           3 "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
           4 "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
           5 <hibernate-configuration>
           6   <session-factory>
           7     <property name="hibernate.connection.url">jdbc:oracle:thin:@192.168.0.212:1521:mtime</property>
           8     <property name="hibernate.cglib.use_reflection_optimizer">true</property>
           9     <property name="hibernate.connection.password">lindasl</property>
          10     <property name="hibernate.connection.username">WILINTEST</property>
          11     <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
          12     <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
          13     <property name="hibernate.default_schema">WILINTEST</property>
          14     <property name="hibernate.show_sql">true</property>
          15   </session-factory>
          16 </hibernate-configuration>

          需要特別指出的是第13行,一定要加,而且schema一定要大些,不然。。。。。
          posted on 2005-07-01 09:45 wilin 閱讀(183) 評論(0)  編輯  收藏 所屬分類: eclipse

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 金堂县| 车险| 朝阳区| 绥棱县| 嘉义县| 河南省| 大同县| 中牟县| 罗江县| 长阳| 乌鲁木齐县| 项城市| 潍坊市| 缙云县| 通化市| 滨海县| 梨树县| 昌平区| 西吉县| 阳江市| 商城县| 仙游县| 绥中县| 博乐市| 万载县| 盐池县| 高邮市| 崇信县| 象山县| 宜兰市| 石首市| 永靖县| 来凤县| 黔江区| 怀来县| 天台县| 文成县| 公主岭市| 平顶山市| 碌曲县| 静宁县|