Using DB defaults may *not* be a good idea if you don't also have
them in EOF code. EOF will save and then have a different value in
mem as in the DB.
The intent (though I don't know if it's clear in the API) of setting
defaults is ONLY for use in migrations so that you can add a not-null
column and set a default value for existing rows to prevent it from
failing with a constraint violation. They should ONLY be used on not-
null columns that are also marked allows null = false in your model so
EOF will fail before it hits the DB, or you will suffer the fate that
Anjo describes.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]