Hibernate version: NHibernate 1.0.2
Does anyone know if there is a way to tell SchemaExport to create indexes. For example, say I have a Person object and I want the Name property to have a non-unique index on it. I noticed that there is an "index" attribute on the "property" element which I tried setting, but, it doesn't seem to work.
Code:
<property name="Name" index="Name"/>
I'm using SQL Server 2005 Express. Currently, I'm just creating the indexes using ADO.NET, but, I wanted to check to make sure I'm not overlooking an easier way to do it.