How to create a table mapping per class with white nhibernate?

I am trying to create a mapping like the following with white nhibernate:

<class name="IAccountManager" 
    abstract="true" 
    table="IAccountManager">

    <id name="Id">
            <generator class="hilo"/>
    </id>

    <union-subclass
            table="DefaultAccountManager"
            name="DefaultAccountManager">
            <property name="FirstName"/>
    </union-subclass>

    ... more subclasses
</class>

      

Thoughts on how to do this?

0


a source to share


1 answer


Union-subclasses are not currently supported by Fluent NHibernate. FNH allows you to mix fluent and hbm collations, so you should keep hbm collations for this case.



0


a source







All Articles