Re: Default values in EOF
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