I'm to new at NHibernate to follow you but the mapping is generated from Fluent NH so maybe it's an issue in that product?
public EntityMap()
{
Id(x => x.Id);
Map(x => x.Content).WithLengthOf(2500);
}
From "16.1.1. Customizing the schema"
http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html_single/#toolsetguide-s1-2
Ex:
<property name="Foo" type="String" length="64" not-null="true"/>
From my hbm:
<property name="Content" length="2500" type="string"/>
Do you mean that there are more ways of configure the length?