In my data model there is a class with a byte[] Hash property, which is translated into BLOB. I want this column/property to be unique.
According to this MySQL manual page, I need to specify an index prefix length for the BLOB otherwise it doesn’t allow indexing on BLOB.
CREATE TABLE test (blob_col BLOB, INDEX(blob_col(10)));
In (Fluent) NHibernate how can I do it?
Thanks
database-object in a hbm.xml file or string and
new Configuration.Configure().Add()http://ayende.com/blog/3947/nhibernate-mapping-database-object