Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 75544 invoked from network); 27 Aug 2008 06:26:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 06:26:28 -0000 Received: (qmail 94859 invoked by uid 500); 27 Aug 2008 06:26:25 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 94846 invoked by uid 500); 27 Aug 2008 06:26:25 -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 94835 invoked by uid 500); 27 Aug 2008 06:26:25 -0000 Delivered-To: apmail-incubator-cayenne-user@incubator.apache.org Received: (qmail 94832 invoked by uid 99); 27 Aug 2008 06:26:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2008 23:26:25 -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 oyvindharboe@gmail.com designates 209.85.200.168 as permitted sender) Received: from [209.85.200.168] (HELO wf-out-1314.google.com) (209.85.200.168) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 06:25:27 +0000 Received: by wf-out-1314.google.com with SMTP id 27so2471069wfd.21 for ; Tue, 26 Aug 2008 23:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=NSC++qKK3pZNMqCDNbvvbKNMCIwtA40MXPMw8opRIl4=; b=ldfkUw6Gm4BsjwM7sZZn+zPS3JJnPY4EOJCPgvdAKeOzLN7+Q1I+Ld01Xouf7kI4Ix eonxvk5ueaLVxIgrdt6WmJMcSekHdVhkdHfeR2gQHmSVQMgM5M1VxrEk4aOUBMr8NAoV S0svUOpGhA+GVfl1aZqqcYAdN6uYuGdbbszZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=MaNFC0cFzRCqkANGe61Koc2XTUHCyVUI9txgiSRVv/l+61+1kC23vt3R4y773gRRvQ lIT43BWpz74iPtQlba1q0UE6ag2SexJidgzmSsI394phXnwtGkOcJ+l85X/bWK2sVK4/ AUnW/TH97TjBHSzUuaHnVL5h4mUEh433LKQII= Received: by 10.142.231.7 with SMTP id d7mr2336708wfh.137.1219818357693; Tue, 26 Aug 2008 23:25:57 -0700 (PDT) Received: by 10.142.50.21 with HTTP; Tue, 26 Aug 2008 23:25:57 -0700 (PDT) Message-ID: Date: Wed, 27 Aug 2008 08:25:57 +0200 From: "=?ISO-8859-1?Q?=D8yvind_Harboe?=" Sender: oyvindharboe@gmail.com To: cayenne-user@incubator.apache.org Subject: Making columnOriginal and columnNew public MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Google-Sender-Auth: ec91aac23078ad03 X-Virus-Checked: Checked by ClamAV on apache.org I need to figure out if a change to the database would cause data loss. E.g. a user might *increase* the size of a text field and in this case the model should be adapted to the new size. This allows database managers some control over the database structure from the comfort of e.g. MS SQL Manager. If the model has a *larger* size of a text field, then I want to update the database column to be larger. I'm not sure I'm a believer in an automatic way of handling this since there could be a lot of application specific decisions happening. How about exposing the above two attributes in getColumnOriginal() and getColumnNew()? --=20 =D8yvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer