Mapping an NCLOB to a String property in NHibernate
来源:互联网 发布:林青霞五官数据分析 编辑:程序博客网 时间:2024/06/03 11:44
So I ran into an issue this evening where I needed to map a string property to a NCLOB column but I kept getting:
"ORA-01461: can bind a LONG value only for insert into a LONG column"
Turns out that you should set the column type to "AnsiString" as in:
<property name="Contents" column="CONTENTS" type="AnsiString"/>
- Hope this helps someone else out.
0 0
- Mapping an NCLOB to a String property in NHibernate
- How to group anagrams in a string into an array
- NHibernate Cookbook 3 Mapping a one-to-many relationship
- Need to specify class name in environment or system property, or as an applet parameter, or in a
- How Do I Convert an Integer to a String in Excel VBA
- Matching Portions of A String to Elements of an Array in Ruby
- Convert a string to an enum
- Read/convert an InputStream to a String
- c++函数映射(Mapping Functions to a Map in C++)
- How to Parse a string to an int? [C#]
- Implement atoi to convert a string to an integer.
- Implement atoi to convert a string to an integer.
- contextTypes was defined as an instance property on MyButton. Use a static property to define contex
- more safe way to assign a property value of an object to a variable
- How to split a string in C++
- Need to specify class name in environment or system property, or as an applet parameter, or in an ap
- Need to specify class name in environment or system property, or as an applet parameter, or in an ap
- Mapping Properties to String Keys
- Swift 之结构体
- APP推广——六剑战天下
- 让开源解读“甲骨文”--RHEL5.3部署安装Oracle Database10g Release2(10.2.0.1.0) for Linux x86
- 站长如何在世界杯中变成黑马?
- 给将要求职的学弟学妹们一点建议
- Mapping an NCLOB to a String property in NHibernate
- NGUI控件的管理
- Weblogic Server
- unity3d基础开发地形的基础知识
- Linux crontab的解读和使用
- struts2之ModelDriven
- 使用GPU类库后录制视频后 无法播放视频
- 20岁高中辍学者“华丽转身”背后的坚持
- Java调用WebService(axis2)两种方法