components do not allow for polymorphism. you need to implement your
own IUserType to manage PaymentType. You're other option is to map
PaymentType to an entity (requires db schema change.)

On Nov 20, 2:04 am, "[email protected]"
<[email protected]> wrote:
> I have what appears to be a common and simple model.  I have a
> Subscription entity which contains the value object PaymentMethod.
> The PaymentMethods are CreditCard or ECheck.   I map the Subscription
> class as an entity and I would like to map the PaymentMethod has a
> component, but component mappings don't support polymorphism. Or do
> they?  How do other people handle this? Or is there something wrong
> with the modeling?
>
> Cheers,
> Aeden

--

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=.


Reply via email to