Hi friends!

i have an inheritance:  Customer is base class for GoodCustomer and
BadCustomer

* these are fictial name classes, just for illustrations

I've mapped that as  a single table like this:

<class name="Customer"
                         abstract="true"
                         table="Customers">
        <id name="Id">
                <generator class="identity"/>
        </id>
        <discriminator column="Discriminator"
                        not-null="true"
                        type="System.String"/>

        <subclass
                name="GoodCustomer"
                discriminator-value="good">
                <property name="Discount"/>
        </subclass>

        <subclass
                name="BadCustomer"
                discriminator-value="bade">
                <property name="BlockNewBuying"/>
        </subclass>
</class>

Now, i need search for *Customer*. So in that Customer List, is there a way
to find out which one is of type *GoodCustomer* or *BadCustomer* ?

Thanks!


-- 
Paulo R. Quicoli

Editor Técnico - ClubeDelphi Magazine - DevMedia

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