| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: OO and relation "impedance mismatch"
mAsterdam wrote:
> Kenneth Downs wrote: >
>>>Kenneth Downs wrote: >>>... >>> >>>>3. Enforce the arbitrary convention that a foreign key definition >>>> causes columns to be placed into the child table that correspond >>>> in name and type/precision/scale to the primary key of the >>>> parent. >>> >>><delurk> >>>Not the name. >>>It would exclude mutliple foreign keys between >>>two tables (ordinary? yes, very). You might want to use the role >>>name for each of them. >>></delurk>
> > While I was thinking account_from, account_to, > account_provision, account_costs, etc.
Yes, yours is appropriate, if I understand your use of account_from and account_to. I don't understand account_provision and account_costs, are all four columns in one table? If so, what are they?
But salesperson1..n is not usually appropriate. Haven't figured out if I can protect against one while allowing another, but also haven't thought about it that hard. At the moment the loophole is open.
-- Kenneth Downs Use first initial plus last name at last name plus literal "fam.net" to email meReceived on Wed Oct 06 2004 - 20:05:18 CDT
![]() |
![]() |