views:

25

answers:

0

I have a class A in one assembly and subclass B that extends A in another assembly that I am trying to auto-map. There are classes that have relationships to A, and classes that have relationships to B. The subclass strategy is table-per-inheritance-hierarchy. (NOT joined-subclass)

Depending on the order of how I add the persistence models to the collection, the mapping files generated either don't include the subclass at all, or are fine, but even when the mapping files seem correct, when I try to create the DB schema, I get an exception that B is an unmapped class.

Is this scenario supported? Is the "extends" method of specifying a subclass in a separate file supported by fluent-nhib (as mentioned here: http://laribee.com/blog/2007/01/15/managing-nhibernate-maps/ )?

Thanks in advance. -Tim