I am trying to plug NHibernate 1.0 RC into a project I'm working on,
and I have a problem with SubclassMap.
I keep getting the following:
NHibernate.MappingException: Association references unmapped class:
SAAM.Library.Entities.BPointOfContact
My objects are set up that I have an APointOfContact and a
BPointOfContact which both implement IPointOfContact. As an aside,
they also both inherit from Entity<Type> but that shouldn't matter I
think...
I have a ClassMap<IPointOfContact> which has the following line in it:
DiscriminateSubClassesOnColumn<int>("IsB");
And two SubclassMap's, which look like this:
public classBPointOfContactMap : SubclassMap<BPointOfContact>
{
publicBPointOfContactMap()
{
Table("SAAM_PointsOfContact");
DiscriminatorValue("0");
References(x => x.Partner).Column("PartnerId");
}
}
I'm using these mappings in a much more complex way in another area as
well for mapping out workflows, so this is kind of a show stopped for
me right now...
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---