| To: | "users@xxxxxxxxxx" <users@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] DbUnit and Hibernate |
| From: | "Edward Sumerfield" <esumerfd@xxxxxxxxx> |
| Date: | Tue, 8 Aug 2006 13:24:18 -0400 |
| Delivered-to: | mailing list users@cinjug.org |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=aBAhQnBi3dXuiSRsbKdq8bEVIcncviT+7VIBk202S6+ATA7cYvjlJSLYZAjMjR/x/KUCeJ1sMMe6JmQ2a8+oZHVP/2nriujmFoCpExo1UbRAkV5fR/B7aZFNCyHcjcncUlrLyjkStR+U7A1R5g0luQEXHkSVvi2aUuwt9Fwv8As= |
| In-reply-to: | <fc8eb4d1d330.44d8608f@insightbb.com> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| References: | <6a216ba20608020750v496e606eh72da2bd5deb9f907@mail.gmail.com> <44D0D767.8040108@digilore.com> <6a216ba20608021054l64f15729ufdf2b9d35e542dd2@mail.gmail.com> <fc8eb4d1d330.44d8608f@insightbb.com> |
| Reply-to: | esumerfd@xxxxxxxxxxxxxx |
|
DBUnit rocks. It gives you data exporting and importing to a few different formats. I use Excel and XML format. I export data from an Oracle database and import into hsqldb between each test. Very fast and fairly simple to use.
The toughest problem is managing load dependencies. Each exported table and row must not break the foreign keys. Oracle allows us to generate a list of tables in foreign key dependent order. It doesn't solve the problem of self-referencing tables and the row sequence though. Additionally, since you are likley not exporting the entire database you may miss some required dependencies so there is usually some data patching that is required after the export to ensure that the data can be re-loaded correctly. Make sure that you allow the export to include tables from a sub-dependent tree. I have never been able to fix the dependencies for an entire schema. On 8/8/06,
twcrone@xxxxxxxxxxxxx <twcrone@xxxxxxxxxxxxx> wrote:
-- Ed |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | DbUnit and Hibernate, twcrone |
|---|---|
| Next by Date: | Re: [cinjug-users] DbUnit and Hibernate, Rob Keefer |
| Previous by Thread: | DbUnit and Hibernate, twcrone |
| Next by Thread: | Re: [cinjug-users] DbUnit and Hibernate, Rob Keefer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |