+1 to this suggestion. It's not a matter of if, but when something will happen to your production data if you have a default production connection dictionary in your model. When it does happen, just hope it isn't a migration.

On 10/10/2008, at 11:25 PM, Mike Schrag wrote:

you can add a listener in your Application class.
Or use Wonder and just set it with Properties ... That said, I HIGHLY recommend (and you can put this on my best practices list) that you never make the default connection dictionary in your model the production database. This is the setup for a complete disaster since (as you're seeing) the default state will be to mess with your production data. Make your default connection dictionary at most a development database (like a http://127.0.0.1/MyDatabase) and Properties-set your production config as a deployment config.

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/qdolan%40gmail.com

This email sent to [EMAIL PROTECTED]



--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



_______________________________________________
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]

Reply via email to