Re: Deleting All Objects in a Database
Re: Deleting All Objects in a Database
- Subject: Re: Deleting All Objects in a Database
- From: Chuck Hill <email@hidden>
- Date: Tue, 27 Oct 2009 18:14:17 -0700
On Oct 27, 2009, at 5:57 PM, David LeBer wrote:
On 2009-10-27, at 8:29 PM, Chuck Hill wrote:
On Oct 27, 2009, at 4:34 PM, Joe Kramer wrote:
Hi all,
I am trying to make the life of the person doing our acceptance
testing easier by creating a utility that deletes all the objects
from our database without having to run our drop/create scripts
and restart our app every time she wants to start a test from a
clean environment. Is there an easy way to delete all the objects
in a database in webobjects?
Not that I can think of. In your case, it will probably be quicker
to do what you are doing.
For our integration tests we use a combination of raw sql and DBUnit
to setup and teardown the test db.
While the app is running? The problem doing this while the app is
running is mostly PK conflicts when the sequences restart. You could
invalidateAllObjects, but yanking the DB out from under a running app
_can_ produce odd results.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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