• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Default values in EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Default values in EOF
      • From: email@hidden
References: 
 >Re: Default values in EOF (From: email@hidden)

  • Prev by Date: Re: Download of text file, charset problem on Mac
  • Next by Date: Re: Download of text file, charset problem on Mac
  • Previous by thread: Re: Default values in EOF
  • Next by thread: Re: Default values in EOF
  • Index(es):
    • Date
    • Thread