用伺服器提供的資料來源,hibernate出現問題。

chenggg發表於2005-01-06
我用的是oracle9.
配置檔案如下:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:comp/env/jdbc/hibernate</property>
<property name="show_sql">false</property>
<property name="dialect">net.sf.hibernate.dialect.OracleDialect</property>
<!-- Mapping files -->
<mapping resource="com/hellking/study/hibernate/Address.hbm.xml"/>
<mapping resource="com/hellking/study/hibernate/Student.hbm.xml"/>
<mapping resource="com/hellking/study/hibernate/Classes.hbm.xml"/>
<mapping resource="com/hellking/study/hibernate/Course.hbm.xml"/>
</session-factory>
</hibernate-configuration>
執行後出現的異常,不知是何理由.請看附件:

chengggC373d41c8r.txt

相關文章