Hi,

I'm a begginer with NH but have been able to use successfully the
class inheritance available. It's quite amazing really! Now I was
wondering if a type (as in value object) inheritance was possible? Let
me give you an example:

My class PERSON has a DOCUMENT type. The DOCUMENT doesn't have a table
it's just a string field. Can I use the single table strategy with
discriminator in a property as opposed to the actual class? Given the
POCO below, how would I map inside the PERSON class a property
DOCUMENT that would discriminate between its implementations?

class Person
{
   Document Document
   {
       get;
       set;
   }
}

abstract class Document
{
    public String Number
    {
        get;
        set;
    }
}

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

Reply via email to