hi there.

i have 4 tables :

**1 - tbl_cars**

    id (PK)
    car_name
    model
    year

**2 - tbl_carOwner**

    id (PK)
    carId (FK - reference to tbl_cars)
    ownerId (FK - reference to tbl_ownerPersnoal or tbl_ownerCompany
or tbl_ownerGov)
    ownerType (to make a differentiation about owner)

**3 - tbl_ownerPersonal**

    id (PK)
    name
    ic_no
    address

**4 - tbl_ownerCompany**

    id (PK)
    registration_no
    business_type
    name
    address
    fax
    mail

**5 - tbl_ownerGov**

    id (PK)
    agency_name

As you can see, I need to make a differentiation between owner because
of the different field.

How can I relate all the table with mysql and nhibernate?

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