• 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: Seejo Pylappan <email@hidden>
  • Date: Wed, 27 Apr 2005 13:59:55 -0400

EOF does not rely on the database to provide default values. You should do that in the code segment. You can implement the awakeFromInsertion() in your custom object to provide the initial values for your EO. Read the following documentation for more details:

http://developer.apple.com/documentation/WebObjects/Enterprise_Objects/ BusinessLogic/chapter_4_section_3.html

Thanks,
Seejo

On Apr 27, 2005, at 1:18 PM, email@hidden wrote:

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:
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
  • Follow-Ups:
    • Re: Default values in EOF
      • From: Hugi Thordarson <email@hidden>
References: 
 >Display Null value with Raw Rows (From: "Albert Jagnow" <email@hidden>)
 >Re: Display Null value with Raw Rows (From: Elizabeth Lynch <email@hidden>)
 >Default values in EOF (From: email@hidden)

  • Prev by Date: Re: Default values in EOF
  • 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