Re: 3-ary relationship and association class
From: H. S. Lahman (h.lahman_at_verizon.net)
Date: 09/21/04
- Next message: Traveler: "Re: Why Software Is Bad and What We Can Do to Fix It"
- Previous message: Mark Nicholls: "Re: dip Notions 2 Major Errors"
- In reply to: Lee Riemenschneider: "Re: 3-ary relationship and association class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Sep 2004 16:40:44 GMT
Responding to Riemenschneider...
>>The RDB approach is the first approach.
>
>
> We'll have to agree to disagree. While what you describe may be your
> experience with RDBs, I'd have to say it is as bad a database design
> as leaving the associations off the class model. What you described
> sounds like what Date often refers to as logical-physical confusion.
We seem to be talking past one another again. Why do we always seem to
do that?
Every RDB I've ever seen provide schemas that that have embedded data
attributes for both tuple identity and referential attributes:
Customer:
Customer Name // values: "ACE", "ACME", ... "Zephyr United"
Address
...
Contact Name --------+ // values: "Irving Frumpkin", "Joe Blow", ...
... |
|
Contact: |
Contact ID <---------+ // values: "Irving Frumpkin", "Joe Blow", ...
Phone Number
...
There are no pointers in that schema; all identity and referential
attributes have explicit identity values. More important, if you ask
for a join of Customer and Contact information, the RDB engine takes the
stored value of "Joe Blow" in Customer::Contact Name and does an index
lookup to find the Contact tuple with that Contact ID in order to
extract the data.
-- ************* There is nothing wrong with me that could not be cured by a capful of Drano. H. S. Lahman hsl@pathfindermda.com Pathfinder Solutions -- Put MDA to Work http://www.pathfindermda.com blog (under constr): http://pathfinderpeople.blogs.com/hslahman (888)-OOA-PATH
- Next message: Traveler: "Re: Why Software Is Bad and What We Can Do to Fix It"
- Previous message: Mark Nicholls: "Re: dip Notions 2 Major Errors"
- In reply to: Lee Riemenschneider: "Re: 3-ary relationship and association class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|