Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 67543 invoked from network); 11 Aug 2007 01:03:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Aug 2007 01:03:03 -0000 Received: (qmail 46243 invoked by uid 500); 11 Aug 2007 01:03:01 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 46084 invoked by uid 500); 11 Aug 2007 01:03:01 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 46075 invoked by uid 99); 11 Aug 2007 01:03:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 18:03:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of plinskey@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2007 01:02:57 +0000 Received: by py-out-1112.google.com with SMTP id f31so1608406pyh for ; Fri, 10 Aug 2007 18:02:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZyrcgAd+j7rmhlCnFWwx1o/quDv+zGBATj1he8ksm5urM2/M5zuxLE2viQoJkpijZ+eBc574xTau+zY0gYKTFm5RUTgrHUZ8+XHMPx5QjOeaxkAlj0hLTRQR1d4CeykcanAMCut6HeKVM3RBKmWUP5scOxdl9esEr5DIevU1U2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=It1xdRSxmO9PGf1fUZ99LGbSc9/+TXNlMRpA1pbWbNahiRbHJUk4M7ia7RcMLpTKpzF8LPETMJl8YOsxS7vJHpRtc4lcB4DujpMtm4L8znGdCj9LU96mGykr2kt1EGAA/ulp7YxUjU18+EJKRVQ3qAEgS51JweItL2axskXzmgw= Received: by 10.35.49.4 with SMTP id b4mr5771136pyk.1186794155953; Fri, 10 Aug 2007 18:02:35 -0700 (PDT) Received: by 10.35.8.4 with HTTP; Fri, 10 Aug 2007 18:02:35 -0700 (PDT) Message-ID: <7262f25e0708101802p196bda84o9e804ef3c9257cba@mail.gmail.com> Date: Fri, 10 Aug 2007 18:02:35 -0700 From: "Patrick Linskey" To: dev@openjpa.apache.org Subject: Re: Drop and recreate tables or clear tables? In-Reply-To: <4EDB2553-61EE-498A-BAAF-C748058C1E9A@iq80.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4EDB2553-61EE-498A-BAAF-C748058C1E9A@iq80.com> X-Virus-Checked: Checked by ClamAV on apache.org To add any schema elements that don't exist and then delete all rows from all mapped tables, do: openjpa.jdbc.SynchronizeMappings: buildSchema(SchemaAction='add,deleteTableContents') -Patrick On 8/10/07, Dain Sundstrom wrote: > Reading the archives it sounds like drop and recreate table support > was added along with support for clear tables. Unfortunately, I > can't find any definitive docs on how I turn this on. Can anyone > tell me the exact property settings to turn either of these two > features on? > > Thanks, > > -dain > -- Patrick Linskey 202 669 5907