[Rails] Re: The need of IDs in ActiveRecord
Eric Anderson
eric at afaik.us
Wed Jan 12 13:12:43 GMT 2005
Justin Rudd wrote:
> That's inheritance, not a parent/child relationship.
[...snip...]
> A parent table is one that lends its identity to a child to help
> uniquely identify the child. I used an example of a PO and a PO Line
> item in another e-mail. The PO Line Item is a child of the PO because
> its primary key is a the PO Number and the Line Item number.
I guess this is just difference in definition. Usually when I think of
inheritance I think of it as a parent/child relationship. The superclass
is the parent, the subclass is the child.
For your PO example I see those as two different objects. The PO Line
Item is related to and dependent on the PO, but it is still it's own object.
Like I said, just a difference in definition.
Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://one.textdrive.com/pipermail/rails/attachments/20050112/37dce6bb/signature.bin
More information about the Rails
mailing list