AutoMap Inheritance

Original Post Bill's Avatar

Bill

02 Apr, 2010 07:31 PM via web

I'm new to Fluent & nHibernate. So far most everything is mapping great. One issue so far:
BaseEntiry (abstract)
-> Parent

 -> Child

I am using Joined subclass strategy but the child is not mapping and I get a 'An association from the table 'whatever' refers to an unmapped class' exception.

I can see the child entity in my IJoinedSubclassConvention implementation when I stop in debug mode. I can see the child in the FluentHibernate.Cfg.MappingConfiguration. But when I WriteMappingsTo(), it does not write a mapping.

Is there any way to automap or FluentMap this type of inheritance?

Sorry if this has already been answered. I tried to research before posting.

Thanks for you help. This is a great product!

Bill

    Reply to this discussion

    Preview Comments are parsed with Markdown. Help with syntax

    Attached Files

      You can attach files up to 10MB

      What is 14 minus 4?

      Recent Discussions

      05 Jul, 2010 10:29 PM
      05 Jul, 2010 12:45 PM
      05 Jul, 2010 12:42 PM
      05 Jul, 2010 12:17 PM
      05 Jul, 2010 12:12 PM

       

      03 Jul, 2010 12:26 AM
      02 Jul, 2010 02:17 PM
      02 Jul, 2010 08:18 AM
      02 Jul, 2010 12:20 AM
      01 Jul, 2010 10:14 PM