users
[Top] [All Lists]

Re: [cinjug-users] XLS to Database

To: users@xxxxxxxxxx
Subject: Re: [cinjug-users] XLS to Database
From: "Edward Sumerfield" <esumerfd@xxxxxxxxx>
Date: Thu, 25 May 2006 20:56:57 -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=RnONunslqw3C4g7JTmbHo/k1UN++hrjuKc0E9Q8r5Ad+sVwgJdH7y3Bmo5/CV8pJvfj6yVQ0CV7DD2RTrXKgD/yvWEtZ4GhbdlurkhzBY0IzldyQFHqLDUMK7moDhj810M77axyWkLHwaIPrDRMyQrwVH+4G2H+4Bxzx8m9Bm28=
In-reply-to: <20060525195538.10568.qmail@web38114.mail.mud.yahoo.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <6a216ba20605251134u585851ddl3493cff13d263a69@mail.gmail.com> <20060525195538.10568.qmail@web38114.mail.mud.yahoo.com>
Reply-to: esumerfd@xxxxxxxxxxxxxx
Thanks guys this works well.

Don't supposed you also no the magic to make the loaded excel evaluate the formulas?

If not, what are the stratagies that I can use to calculate the foreign keys. It would be nice if the formulas could resolve ids across sheets. I would rather not have to hardcode them if I can avoid it.

On 5/25/06, Chris Nelson <cnelson4eii@xxxxxxxxx> wrote:
DBUnit can load the database from Excel files, but not
your domain objects.  Sounds like a useful idea tho.

--- Edward Sumerfield <esumerfd@xxxxxxxxx> wrote:

> We are about to start building a cool idea for
> loading mock data into hsqldb
> and wondered if someone knows of a library that does
> it already?
>
> Each MS Excel file represents a set of mock test
> data, each worksheet name
> is the name of a Hibernate value object, each column
> name is the name of a
> setter method. We should be able to load the spread
> sheet, dynamically
> construct the objects, dynamically call the setters
> and insert into the db.
>
> --
> Ed


<Prev in Thread] Current Thread [Next in Thread>