I recently read in the NHibernate documentation...
Quote:
In this case, a polymorphic association to IPayment is mapped using <any>. 
<any name="Payment"
        meta-type="class"
        id-type="Int64">
    <column name="PAYMENT_CLASS"/>
    <column name="PAYMENT_ID"/>
</any>
It would be better if we defined an IUserType as the meta-type, to handle the mapping from type discriminator strings to IPayment subclass. 
...but I can't find any literature on HOW to define the IUserType.  Can anyone explain this in a little more detail?
Symon.