Re: Searching OO Associations with RDBMS Persistence Models
Date: Fri, 16 Jun 2006 08:42:01 -0400
On 2006-06-06 06:29:31 -0400, "Cimode" <cimode_at_hotmail.com> said:
> I do not quite understand the following sentencesR Martin used...
> "They were semantic elements that had identity"
> "but they weren't database entities, and so the concept of "key" was
> How did you define *identity* on these semantic elements without a key?
> What other mechanism of identification have you used to coherently
> identify these semantic elements? Do you suppose they is a need to
> distinguish them or not?
> Just curious.
An object has an intrinsic identity within the computer. You could think of this identity as the pointer to the object; but this is an approximation at best. Some languages expose the numeric value of that pointer, and some don't. Others allow an object to have more than one address. So, although an object is a tuple, the notion of a key as one of the fields of the tuple that uniquely identifies the tuple, is not part of OO.
-- Robert C. Martin (Uncle Bob) | email: unclebob_at_objectmentor.com Object Mentor Inc. | blog: www.butunclebob.com The Agile Transition Experts | web: www.objectmentor.com 800-338-6716 |Received on Fri Jun 16 2006 - 14:42:01 CEST