Re: Default values in EOF
Re: Default values in EOF
- Subject: Re: Default values in EOF
- From: Ricardo Strausz <email@hidden>
- Date: Mon, 9 May 2005 18:41:46 -0500
Hola Sako!
Can you use a new table to store default values?
If so, you can query such data inside and outside EOF, and maintenance
becomes easer!
Dino
On Apr 30, 2005, at 12:58 PM, email@hidden wrote:
Hello Ricardo,
Thank you for answering.
Yes, i still remember the philosophy of EOF. The point, my life is not
theoretical as EOF supposes.
I have another applications using the same database which are not WO
applications.
I am in the middle of 2 bad choices.
a. save the logic in EO's, other applications must also do the same.
Bad
choice.
b. save the logic in the database, EO's have not the full logic. Bad
choice.
Hope any can give me a good choice :)
Regards,
Sako.
Human will have a very simple life if everyone lives on his own planet.
Reality says 6.billion on the same planet.
Does EOF can service with another applications on the same database?
how?
----- Original Message -----
From: "Ricardo Strausz" <email@hidden>
To: <email@hidden>
Sent: Friday, April 29, 2005 8:12 PM
Subject: Re: Default values in EOF
Hola Sako!
Remember that the philosophy of EOF is to put all the logic in your
EO's ---not in the database or else-were. Therefore the mechanism
proposed to accomplish this is to put your default values on code in
your EORecords.
From the docs:
public void awakeFromInsertion(EOEditingContext ec)
Overridden by subclasses to perform additional initialization on the
receiver upon its being inserted into ec. This is commonly used to
assign default values or record the time of insertion.
EOCustomObject's implementation merely sends an
awakeObjectFromInsertion to the receiver's EOClassDescription.
Subclasses should invoke super's implementation before performing
their own initialization.
Suerte!
Dino
On Apr 27, 2005, at 12:55, email@hidden
wrote:
Message: 13
Date: Wed, 27 Apr 2005 19:18:48 +0200
From: email@hidden
Subject: Default values in EOF
To: "WebObjects Dev (Apple)" <email@hidden>
Message-ID: <00e301c54b4d$2cd2baa0$email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hello,
i have in the databse some default values for some attributes.
Some of these attributes do not accept null.
My problem is, EOF does not know the attributes have default value. if
user
does not inserts any value an exception is thorwn.
Any can give me a hint to solve this?
Thank you,
Sako.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
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