Hopefully everything should be documented before we release 1.0. In the mean
time, just ask here and I'll answer. SubclassMap just works the same as
ClassMap really.
public class ParentMap : ClassMap<Parent>
{
public ParentMap()
{
Id(x => x.Id);
// regular mapping
}
}
// child
public class ChildMap : SubclassMap<Child>
{
public ChildMap()
{
// child mappings
}
}
On Wed, Jul 22, 2009 at 10:57 PM, Mikael Henriksson <[email protected]>wrote:
> And of course you just submit the changes I need.
> Thanks James!
>
> When will you have time to document? SubClassMap needs a quickie on the
> wiki :)
>
> 2009/7/22 James Gregory <[email protected]>
>
> JoinedSubclass is what you need.
>>
>> On Wed, Jul 22, 2009 at 10:46 PM, Mikael Henriksson <[email protected]
>> > wrote:
>>
>>> Hi,
>>>
>>> I can't find any good information on this topic. The only examples I can
>>> find is AutoMapping. What I have is two classes Person and ContactPerson. I
>>> map them separately not using DiscriminateSubClassOnColumn or whatever it is
>>> called. I tried table-per-class-hierarchy but I don't like it. I want
>>> table-per-subclass but don't know how to do it fluently. Any suggestions?
>>>
>>>
>>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---