Why don't you want to store NULL in the foreign key? That's the exact
right thing to do...
On Feb 19, 2009, at 8:18 AM, Gennady Kushnir wrote:
Hello list!
I have rather complicated question: is it possible to make an
Enterprise Object that does not relate to any specific existing row in
database?
I want it to indicate vacant employee places where on the other hand I
don't want to store NULL.
So I want relationships pointing to "zero" which is not real primary
key for any row in database to return that fake EO in my WOapp. And
vice-versa - when I assign a relationship to fake EO - then a related
cell in database should get zero value (not null). And also I want to
be able to search database for that value using EOF.
Is it possible somehow? Or my only way is to create a real record in
my employee database called "Mr. Vacancy" and maybe even pay him
salary :)
Thanks in advance
Gennady
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]