2008/9/23 Ken Egozi <[EMAIL PROTECTED]>

> you must use the same PK for the base and derived tables, at least as far
> as NH is concerned.
>

Correct and it is a basic concept of ORM.

@Scott
To understand it better we must speak about what ID mean.
With ID we mean POID: persistent object ID.
Each object have an ID; in RAM (transient) the ID is the reference of the
instance, when you persist an instance you are assigning a new ID to that
instance: the POID.

Now... suppose you have Animal<--Dog<--Fiamma (Fiamma is my Schnauzer)
If I have Fiamma, how many instance I have ? only one and I have only one
POID (Fiamma is a Dog and a Dog is a Animal)
Only one object = only one POID

Many times we are misunderstanding inheritance with role.
Fiamma is a Dog
or
Fiamma can work as watchdog

-- 
Fabio Maulo

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