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 阅读(175) 评论(0)  编辑  收藏 所属分类: eclipse

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


网站导航: