I need to define a unique constraint on multiple properties. In XML this would look like:
<properties name="Name" unique="true">
<property name="FirstName" />
<property name="LastName" />
</properties>
What is the mapping-by-code equivalent in NHibernate (3.3+)? Are there any alternatives to create a multi-column unique index?