This is crossposted to NServiceBus and NHUsers mailing list.
I have a custom mapping (hbm.xml) for a saga class. One property should be
mapped to a nvarchar(max) column.
I started with the following property type:
<property name="Data" type="StringClob"/>
This created the correct schema but when data is getting larger then 4000
characters I'm getting the following exception:
NHibernate.HibernateException
The length of the string value exceeds the length configured in the
mapping/parameter.
During initialization I see that the property is mapped but I don't see a
reference to StringClobType.
In the log I see the following:
[Debug] binding '.....' to parameter: 4 (NHibernate.Type.StringType)
So it seems that although the property type is set to StringClob that this
type is not used.
I tried several different mappings that are mentioned in the following
posts but without success:
*
http://www.primordialcode.com/blog/post/nhibernate-prepare_sql-considerations-mapping-long-string-fields
*
http://zvolkov.com/clog/2009/10/28?s=NHibernate+parameter+sizes+controversy
Does anybody have a solution for this problem?
-- Ramon
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.