views:

13

answers:

1

Hi.

I'm trying to define a property that is not the id as a clustered index in nhibernate, yet I've found no way of doing this.

Could anyone give me a pointer of how this is done, or it is something not currently available in nhibernate?

Thanks in advance

A: 

You can use <database-object> to create indexes and other artifacts.

http://nhforge.org/doc/nh/en/index.html#mapping-database-object

Diego Mijelshon