Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 41690 invoked from network); 9 Mar 2007 10:25:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 10:25:18 -0000 Received: (qmail 41194 invoked by uid 500); 9 Mar 2007 10:25:26 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 41185 invoked by uid 500); 9 Mar 2007 10:25:26 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 41176 invoked by uid 99); 9 Mar 2007 10:25:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 02:25:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ari@ish.com.au designates 59.167.240.32 as permitted sender) Received: from [59.167.240.32] (HELO fish.ish.com.au) (59.167.240.32) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 02:25:14 -0800 Received: from ip-182.ish.com.au ([203.29.62.182]) by fish.ish.com.au with esmtpa (Exim 4.43) id 1HPcIF-0000OK-Og for cayenne-user@apache.org; Fri, 09 Mar 2007 21:25:47 +1100 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-109--292320730" To: cayenne-user@apache.org From: Aristedes Maniatis Subject: Datanode -> XML Date: Fri, 9 Mar 2007 21:24:50 +1100 X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-109--292320730 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I am looking at a way to export and import data from a Derby database. Built into Derby itself is a tool which exports CSV or tab delimited data, but this has a range of problems with binary data and with compatibility across platforms and different databases, as well as across upgrades of the schema. Another option is to use Cayenne itself to perform the migration, with an XML dataNode as the repository for the data. I know that EOF does this sort of thing natively, but I don't believe XML datanodes are available in Cayenne. Has anyone attempted something similar with one of the JDBC-XML drivers (for example: https://xlsql.dev.java.net/)? Speed is likely to be awful, but that is OK for this purpose. It also comes to mind that this approach might be a great way to write unit tests for our system, testing the code against a standard set of sample data. Thanks Ari Maniatis --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A --Apple-Mail-109--292320730 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFF8TXz72p9Lj5JECoRAnVvAJ4tlGLoYQI1LRjI1n4o8DNZBF5mQACeMziV WVGL6Thwv38TlOBgz+qp3y8= =DJss -----END PGP SIGNATURE----- --Apple-Mail-109--292320730--