Hmm... you seem to think that these are interchangeable concepts. They
are not. You use both, depending on what you need.
If your entity contains a collection, you use "collection mapping". If
you entity has a property that is of another ("small") class, and you
don't want to map that to a separate table, use "component mapping".
/Oskar
2009/11/11 Dick Negrana <[email protected]>:
> I just want to know which is appropriate to use in mapping a entity?
> Collection Mapping or Component Mapping in NHibernate 2.0
>
>
> On Tue, Nov 10, 2009 at 4:47 PM, Oskar Berggren <[email protected]>
> wrote:
>>
>> 2009/11/10 silentdk <[email protected]>:
>> >
>> > Guys,
>> >
>> > I was confused which I going to use in Mapping my entity. Anyone can
>> > give me idea which is better. Component or Collection Mapping?
>> >
>>
>> Ehm... not sure I understand you correctly. Those are quite different
>> things. Which is better, a hammer or a saw?
>>
>> /Oskar
>>
>>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---