Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 76282 invoked from network); 9 Jan 2009 20:29:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2009 20:29:21 -0000 Received: (qmail 17656 invoked by uid 500); 9 Jan 2009 20:29:20 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 17622 invoked by uid 500); 9 Jan 2009 20:29:20 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 17613 invoked by uid 99); 9 Jan 2009 20:29:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 12:29:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jamianb@gmail.com designates 64.233.170.186 as permitted sender) Received: from [64.233.170.186] (HELO rn-out-0910.google.com) (64.233.170.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 20:29:12 +0000 Received: by rn-out-0910.google.com with SMTP id j66so6486066rne.20 for ; Fri, 09 Jan 2009 12:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=6urOhPa+AA1GLbe6fBwal+209jkyXxh0sMjABDV1wtg=; b=IMt/HmwFMwdF2F2thD6fQyMu1eoVVTvappXhUAe8Jx5IVRTAZSi06zRm7aOkMmM5tz 59dsbvoI6Nv2YeObZJRW34hGQJSoD40l7Gov8NnGCdVN+nGjAjHBPrw8hIyZYiZaFa6e 71YQ5FdkxuUVPBggFWmUZLzF79h3RyQk7DXjw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=sop97YEN28rJW6rlw6fBCgBO+Zw3ZhoEN54Ei7IHDmaqadDHQ+h/ETzqyiKNRE1liH KNMxgyi9SbNVaK+NdTQTosfVERHQBL2JqCFISfxi3G8BcpXMoTxWO2nNxoSLzkZMYbU3 i4hcUkRFBBS34HJSnJf6Rz9P21p/Yqq/2IVUU= Received: by 10.151.43.19 with SMTP id v19mr4741380ybj.143.1231532931200; Fri, 09 Jan 2009 12:28:51 -0800 (PST) Received: by 10.151.135.13 with HTTP; Fri, 9 Jan 2009 12:28:51 -0800 (PST) Message-ID: <2bbc8f530901091228v7fefd775n94cdef4bf4ac636c@mail.gmail.com> Date: Sat, 10 Jan 2009 07:28:51 +1100 From: "Damian Carey" To: "Derby Discussion" Subject: Re: Derby SQL diff tool suggestions In-Reply-To: <8F798BFDA851B943B3A1B2510E9287850A6927EB@airmail> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2bbc8f530901081631y39f3ffb2v732b03678961594b@mail.gmail.com> <2bbc8f530901081727p4054ca18xc80b2cbb5e2c1f96@mail.gmail.com> <2bbc8f530901082021o3b552a28v6d124114dad59721@mail.gmail.com> <8F798BFDA851B943B3A1B2510E9287850A6927EB@airmail> X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Jan 10, 2009 at 2:36 AM, Scott Anderson wrote: > Have you considered using an ORM such as Hibernate or Cayenne to > alleviate your SQL woes? Cayenne has a Database Merger package which > could be just what you're looking for. > Hi Scott, Our product is already Hibernate base - which allows us to get a fair distance with Java skills and with moderate SQL skills. We use Hibernate to create our schemas. So we have (say) a "Version7Schema" and a "Version8Schema" - both created by Hibernate. However, Hibernate does not have a "production quality" method of updating a database schema. They (Hibernate) do not recommend updating a schema on live/important data with their tool. So we should not and do not use Hibernate to update our databases in the field. Instead we create our update scripts here in the office - where we modify and test them to make sure they are OK. Our issue (and our search for a useful Derby "diff" tool) is in developing the update script that will take us from "Version7Schema" to "Version8Schema". We have a tool to do it for Postrges (APGDIFF), and I was just researching to see if there is something equivalent to do that in Derby. Thanks for your interest. -Damian > -----Original Message----- > From: Damian Carey [mailto:jamianb@gmail.com] > Sent: Thursday, January 08, 2009 11:21 PM > To: Derby Discussion > Subject: Re: Derby SQL diff tool suggestions > > ... > My Java skills are 7/10 (an adequate pass), but my SQL skills are 3/10 > (I can spell "SQL"), so the tool helps ease the transition. The > products use Hibernate - and that both creates the schema, and writes > all the SQL for us. > > Thanks for your reply! > -Damian >