Re: Basic EO question
Re: Basic EO question
- Subject: Re: Basic EO question
- From: Art Isbell <email@hidden>
- Date: Wed, 5 Apr 2006 08:45:28 -1000
"A to-one relationship from one foreign 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."
In your situation, the foreign key is the primary key of the source entity. Because a primary key cannot be null, the relationship cannot be optional, so model it as a to-many relationship.
|
_______________________________________________
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