0

I'm trying to create a mapping similar to the following with fluent 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?

Dane O'Connor
  • 75,180
  • 37
  • 119
  • 173

1 Answers1

0

Union-subclasses currently aren't supported by Fluent NHibernate. FNH allows you to mix fluent and hbm mappings, so you should keep the hbm mappings for this case.

James Gregory
  • 14,173
  • 2
  • 42
  • 60
  • :( I'll have to look into submitting a patch. I'm using the HbmMappings feature of fluent NHibernate now. Just wanted to make sure I wasn't missing anything. Thanks. – Dane O'Connor May 13 '09 at 01:11