• 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: Hugi Thordarson <email@hidden>
  • Date: Wed, 27 Apr 2005 20:08:31 +0000

Yes, this is definately the way to go. My favorite WO-development rule is:

Only open your database administration tool to do two things.
1. Create a database.
2. Delete a database.

Everything else, you do in EOF.

Cheers,
Hugi

PS: I would have mentioned indexing and backup, but that ruins my beatiful two-pronged rule ;-)




On 27.4.2005, at 17:59, Seejo Pylappan wrote:

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

_______________________________________________ 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
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)
 >Re: Default values in EOF (From: Seejo Pylappan <email@hidden>)

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