Re: Non Compulsory toOne Relationships, Propergating Primary Key
Re: Non Compulsory toOne Relationships, Propergating Primary Key
- Subject: Re: Non Compulsory toOne Relationships, Propergating Primary Key
- From: Owen McKerrow <email@hidden>
- Date: Thu, 13 Dec 2007 11:25:36 +1100
On 08/12/2007, at 7:02 AM, Art Isbell wrote:
On Dec 7, 2007, at 8:51 AM, Chuck Hill wrote:
On Dec 6, 2007, at 11:50 PM, Art Isbell wrote:
A to-one relationship from one foreign key to a primary key
Typo: should read "from a primary key to a primary key"
must always have exactly one row in the destination entity—if
this isn’t guaranteed to be the case, use a to-many relationship.
This rule doesn’t apply to a foreign key to primary key
relationship where a null value for the foreign key in the source
row indicates that no row exists in the destination.
I copied and pasted the above, so it's not a typo in the general
case. However, in this specific case, the foreign key is the
primary key, so "from a primary key to a primary key" applies.
Aloha,
Art
So what this seems to be saying is that WebObjects supports 0..X or
1..1 relationships but not 0..1 ?
Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
"I like the way this project has somehow, against all common sense,
got itself made."
- Peter Jackson, "The Lord of The Rings"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden