禁用上下文 LOB 创建,因为 createClob() 方法抛出错误 [英] Disabling contextual LOB creation as createClob() method threw error
问题描述
我在 Oracle 10g 中使用 Hibernate 3.5.6.我在初始化期间看到以下异常,但应用程序本身运行良好.这个异常的原因是什么?以及如何纠正?
I am using Hibernate 3.5.6 with Oracle 10g. I am seeing the below exception during initialization but the application itself is working fine. What is the cause for this exception? and how it can be corrected?
例外
禁用上下文 LOB 创建为 createClob()
方法抛出错误:java.lang.reflect.InvocationTargetException
信息
Oracle 版本:Oracle 数据库 10g 企业版 Release 10.2.0.4.0JDBC驱动:Oracle JDBC驱动,版本:11.1.0.7.0
Info
Oracle version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
JDBC driver: Oracle JDBC driver, version: 11.1.0.7.0
推荐答案
通过在下面添加属性来禁用此警告.
Disable this warning by adding property below.
对于 Spring 应用程序:
For Spring application:
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
普通 JPA:
hibernate.temp.use_jdbc_metadata_defaults=false
这篇关于禁用上下文 LOB 创建,因为 createClob() 方法抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!