Re: Making a fake EO
Re: Making a fake EO
- Subject: Re: Making a fake EO
- From: Ken Anderson <email@hidden>
- Date: Thu, 19 Feb 2009 09:48:53 -0500
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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