Scott Wojan

DotRant BLOG
posts - 18, comments - 63, trackbacks - 5

My Links

News

Archives

Post Categories

Image Galleries

November 2008 Entries

Mapping an NCLOB to a String property in NHibernate
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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, November 10, 2008 7:32 PM | Feedback (5) |

Powered by: