1. 程式人生 > >Hibernate的org.hibernate.dialect.Oracle9Dialect錯誤

Hibernate的org.hibernate.dialect.Oracle9Dialect錯誤

        新學Hibernate,連線mySQL一切正常,連線oracle時出錯提示:

2012-09-05 11:02:17,055 WARN [org.hibernate.dialect.Oracle9Dialect] - The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead

        百度錯誤資訊,網上說是由於Hibernate方言設定錯誤。

       網上說:因為不同的資料庫,在Sql語句的設計上是存在差異的,就好比不同地方的人說不同的方言。而Hibernate呢,它會所有的“方言”,我們要做的,就是告訴它,我們需要它說哪種“方言”。

        再來解釋錯誤提示:Oracle9Dialect這個方言停止使用了,請改為Oracle9iDialect或者Oracle10gDialect

於是開啟Hibernate.cfg.xml檔案,將

                    <property name="dialect">
            org.hibernate.dialect.Oracle9Dialect
 </property>

改為下面這樣,測試正常。

<property name="dialect">
            org.hibernate.dialect.Oracle9i

Dialect
 </property>

又改為這樣,仍然正常。

<property name="dialect">
            org.hibernate.dialect.Oracle10gDialect
 </property>

相關推薦

Hibernate的org.hibernate.dialect.Oracle9Dialect錯誤

        新學Hibernate,連線mySQL一切正常,連線oracle時出錯提示: 2012-09-05 11:02:17,055 WARN [org.hibernate.dialect.Oracle9Dialect] - The Oracle9Dialect

Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set——【hibernate 日常錯誤

EN:Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set CN:訪問dialectresolutioninfo不能為空時,方言沒有設定。 情況一:未在【Hiberna

[Hibernate]Access to DialectResolutionInfo cannot be null when &#39;hibernate.dialect&#39; not set

util create size dialect eat private 解決 代碼 ror 使用Hibernate官方文檔上的下面代碼進行測試時報出這個異常。 org.hibernate.HibernateException: Access to Dialect

hibernateHibernate SQL 方言(hibernate.dialect

hibernate where sof nod red poi form sybase ora 參考如下: RDBMSDialect DB2 org.hibernate.dialect.DB2Dialect DB2 AS/400 org.hibernate.d

hibernate框架學習錯誤集錦-org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL)

context intern session ati log ali opera operation marker 最近學習ssh框架,總是出現這問題,後查證是沒有開啟事務。 如果采用註解方式,直接在業務層加@Transactional 並引入import or

Hibernate3.2 斷網之後報無法解析hibernate.cfg.xml錯誤

問題如題所述,補充的是在聯網狀態下是完全正常的。錯誤描述如下:  org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml 原因在於該配置檔案中頭部位置的配置項: &l

org hibernate id IdentifierGenerationException錯誤解決方法

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

[Hibernate]Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

使用Hibernate官方文件上的以下程式碼進行測試時報出這個異常。 org.hibernate.HibernateException: Access to DialectResolutionInfo

hibernate的常見錯誤解決方法

1、 org.springframework.orm.ObjectRetrievalFailureException: Object of class [com.xindeco.myregister.pojo.MyRegisterInfo] with identifier [14]: not found M

Hibernate4.3.x Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

          如下錯誤                 Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set。                        

Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

檢查applicaiton.properties配置是否正確,所寫的database url是否能夠真的能夠連線到資料庫. 在StackOverflow上得知,Hibernate會自動為我們配置合適的Dialect,前提是它得能夠連線到資料庫.所以你需要檢查你的Hibern

Spring+Hibernate異常及錯誤處理——彙總

一、super.getHibernateTemplate()execute(HibernateCallback) 錯誤資訊: The method execute(HibernateCallback<T>) in the type Hiber

springboot啟動失敗的問題('hibernate.dialect' not set)

springboot版本是1.3.0.M1,連線的mysql版本為8,用spring-boot-starter-data-jpa操做資料庫,啟動springboot報錯如下: 2018-02-21 11:25:47.637 WARN 12992 --- [

'hibernate.dialect' must be set when no Connection available

出現這個問題的原因是少了一句話:configure(); private static SessionFactory buildSessionFactory(){return new Configuration().buildSessionFactory();} 應該改成:

自定義Hibernate Dialect解決createSQLQuery時的decimal,long

org.hibernate.MappingException: No Dialect mapping for JDBC type: 3仔細檢視,發現問題在於資料型別.到網上查,發現hibernate在執行List result = session.createSQLQuery

關於hibernate的一些錯誤和異常

日常積累的一些關於hibernate的報錯以及處理的方法 錯誤1    /hibernate.cfg.xml not found 錯誤名稱:hibernate.cfg.xml配置檔案找不到 解決方案  :  這是hibernate.cfg.xml的檔名寫錯了 錯誤2Una

Spring Boot下使用JPA報錯:'hibernate.dialect' not set的解決辦法

Spring Boot  下使用JPA,報org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set錯誤,

exception:Dialect class not found: org.hibernate.dialect.MYSQL5Dialect

新手第一次學習hibernate,當我執行程式是老是出現異常org.hibernate.HibernateException,反覆檢視程式程式碼,仍然找不出問題所在。最後,上網goolge一下發現了在hibernate.cfg.xml下 <property name

新手小白自學hibernate,官方文檔錯誤,導致的坑爹歷程

開始 images ota cli 沒有 奇怪 測試 4.3 XML 因為是自學的hibernate,所以我先是上網找了些hibernate的視頻來看了幾天,再瀏覽的官方文檔,最後才開始動手做實踐操作,沒想到剛開始就出問題了,我將官方文檔上的hibernate.cfg.xm

學習hibernate出現錯誤--之二(方言)

pda data cells bird nbsp 版本問題 inno 提高 語言 最近在學習hibernate,其中關於錯誤的問題真是一頭大,各種各樣的奇葩錯誤層出不窮,簡直是受不了了。 用hibernate操作數據庫,在使用hibernate進行把持久