Re: Default values in EOF
Re: Default values in EOF
- Subject: Re: Default values in EOF
- From: Guido Neitzer <email@hidden>
- Date: Wed, 27 Apr 2005 20:33:21 +0200
"email@hidden" <email@hidden> wrote:
> So EOF wants to write.
> validateForSave() will checks weather isVaild is not NULL, is it null an
> exception will thrown.
You can add your own code in the validation chain. Check out the validate*
methods in the documentation.
There is also a validation chapter in every WO book I have seen so long.
Also you can provide default values in awakeFromInsertion in your EO custum
object.
> EOF unfortunately does NOT know anything about default values in the
> database, and validateForSave() will throw definitely an exception.
Yes, because YOU have to teach EOF how to validate YOUR objects.
cug
_______________________________________________
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