hibernate操作oracleclob的问题
时间:2008-09-28 09:14:34
来源:论坛整理 作者: 编辑:chinaitzhe
我在官方网站上下载了最新的驱动ojdbc14.jar,ojdbc5.jar,ojdbc6.jar。
在hbm.xml文件中如下配置:
<property name="text" type="text">
<column name="PageText" />
</property>
java类中:
private String text;
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
hibernate配置文件:
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver </property>
<property name="connection.url">jdbc:oracle:thin:@...:1521:... </property>
<property name="connection.username">... </property>
<property name="connection.password">... </property>
<property name="connection.useUnicode">true </property>
<property name="connection.characterEncoding">utf-8 </property>
<!--
<property name="connection.SetBigStringTryClob">true </property>
-->
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.Oracle10gDialect </property>
我的数据库是10.2 版本的,hibernate是3.3.0。JDK1.6
我下载了3个最新驱动,我都尝试过,connection.SetBigStringTryClob也试过。但都报如下错误:
71047 [http-8080-2] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 17090, SQLState: null
71047 [http-8080-2] ERROR org.hibernate.util.JDBCExceptionReporter - 不允许的操作: streams type cannot be used in batching
请教是我哪里配置错了,还是不能使用thin的原因。
网友回复:先帮楼主顶一个
网友回复:再顶!
网友回复:up
网友回复:你这帖子应该发框架区或者Web区去,这里是基础类区
网友回复:关注
网友回复:呵呵 再顶一个
网友回复:配置应该没有问题
是不是sql语句的问题?
网友回复:顶ls
网友回复:
我是直接使用session.save方法保存对象的,并不是自己写的HQL
关键字:
上一篇:条件判断语句
下一篇:下面没有链接了











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面