Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C96DD960E for ; Fri, 7 Oct 2011 20:34:15 +0000 (UTC) Received: (qmail 17830 invoked by uid 500); 7 Oct 2011 20:34:15 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 17800 invoked by uid 500); 7 Oct 2011 20:34:15 -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 17792 invoked by uid 99); 7 Oct 2011 20:34:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 20:34:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of johnthuss@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vx0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 20:34:09 +0000 Received: by vcbfo13 with SMTP id fo13so5887951vcb.16 for ; Fri, 07 Oct 2011 13:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+nwHo7lMI58Bn0U0BlK8CLsJ/xQMZx6vtM0n7gumBhc=; b=oNTaznhIhizlCDoy0stBaONmHtFpuB9jCmfyZlPk0JdvVujbfTfV7HzcyYWrTi9Tnc DUVpS/nEOWMfsJ+giLvOf44m8C7i5zRU1Z/5iT6cFjPWXg5NVTIg1bQOkXGBCSHqFasM YQney2/xvZV1tnUjWknme/iWjVandFPaPtaKM= MIME-Version: 1.0 Received: by 10.220.34.196 with SMTP id m4mr690260vcd.104.1318019628338; Fri, 07 Oct 2011 13:33:48 -0700 (PDT) Received: by 10.220.76.145 with HTTP; Fri, 7 Oct 2011 13:33:48 -0700 (PDT) In-Reply-To: References: Date: Fri, 7 Oct 2011 15:33:48 -0500 Message-ID: Subject: Re: DBSchema migration From: John Huss To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=485b3939c839c10ffb04aebb5bb4 --485b3939c839c10ffb04aebb5bb4 Content-Type: text/plain; charset=ISO-8859-1 Thanks, could you give an example or point me to the classes that do this: "use the ExecutingMergerContext to apply the DB schema changes." On Fri, Oct 7, 2011 at 3:15 PM, Dave Lamy wrote: > I've got runtime schema sync integrated into our codebase. It's > essentially > a matter of updating the Cayenne model at runtime (via manipulation of > DataMap members) and then using the ExecutingMergerContext to apply the DB > schema changes. > > Dave > > On Fri, Oct 7, 2011 at 1:16 PM, John Huss wrote: > > > Can Cayenne do database schema migration (like adding a column) at > runtime > > or just via the modeler app? > > > > Thanks, > > John > > > --485b3939c839c10ffb04aebb5bb4--