Skip to content

Instantly share code, notes, and snippets.

@hemanth23
hemanth23 / gist:5722313
Created June 6, 2013 15:17
The length of the string value exceeds the length configured in the mapping/parameter.
We are facing an exception while using Nhibernate 3.3.3.GA product version, which says "The length of the string value exceeds the length configured in the mapping/parameter."
and this is happening after we have upgraded the Nhibernate version from 3.1.0.4000 to 3.3.3.GA version.
I am facing this problem, even after having the length on the column defined. and below is the mapping info
<property name="OldValue" type="string">
<column name ="OldValue" length="2147483647" not-null="false" />
</property>