Mapping an NCLOB to a String property in NHibernate
2014-06-11 15:51
369 查看
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.
"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.
相关文章推荐
- There is no READABLE property named 'day' in class 'java.lang.String';You have an error in your SQL
- How Do I Convert an Integer to a String in Excel VBA
- [Ramda] Convert a QueryString to an Object using Function Composition in Ramda
- how to remove nil and blank string in an array in Ruby
- Need to specify class name in environment or system property, or as an applet parameter, or in an ap
- javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter,
- How to let TVirtualStringTree to display an icon in disabled state?
- Need to specify class name in environment or system property, or as an applet parameter, or in a
- 在使用jetty配置jndi的时候报错“Need to specify class name in environment or system property, or as an applet pa
- Different ways how to escape an XML string in C# (zz)
- Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.init
- Matching Portions of A String to Elements of an Array in Ruby
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- In Java, how do I read/convert an InputStream to a String? - Stack Overflow
- Different ways how to escape an XML string in C#
- Add mappings to an Elasticsearch index in realtime
- How to get URL and QueryString value in an ASP.NET page
- Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: j
- Know How To Use Check Box Mapping Of Other Values Property In Oracle Forms
- Write a function to convert an IPv4 Address in string format to an unsigned integer