Return-Path: Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: (qmail 26050 invoked from network); 22 Nov 2010 15:20:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 15:20:24 -0000 Received: (qmail 28696 invoked by uid 500); 22 Nov 2010 15:20:56 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 28589 invoked by uid 500); 22 Nov 2010 15:20:53 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 28581 invoked by uid 99); 22 Nov 2010 15:20:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 15:20:52 +0000 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: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 22 Nov 2010 15:20:44 +0000 Received: (qmail 21131 invoked from network); 22 Nov 2010 15:20:22 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 22 Nov 2010 15:20:22 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Upgrade procedure From: Andrus Adamchik In-Reply-To: Date: Mon, 22 Nov 2010 17:20:21 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org (changing topic to keep it separate from the vote) On Nov 22, 2010, at 5:09 PM, Michael Gentry wrote: > The one big issue I had was after I downloaded the DMG, the first > thing I did was run the new CayenneModeler and pointed it at my > current project file. This, of course, does an in-place upgrade. I > had to go to my backups to restore the old project file since it was > pretty different. It isn't very clear that your cayenne.xml file goes > away or that it upgrades and saves immediately. Even the UPGRADE.txt > doesn't quite make it clear (but no one is going to read that > immediately would be my guess). I'm mainly mentioning this because > this is a milestone release and most people might be willing to try it > on an existing project for a test, but not realize it could be a tad > destructive when they go back to 3.0. Yeah, I think we need a Jira to improve CM project upgrade to not save a = project on upgrade until a user clicks save explicitly. The way it works = right now is the way we always did upgrades (which is not to say it is = right). I guess I never cared myself that much, as all my projects are = under version control, even if it is a local git checkin. > Also, the UPGRADE.txt specifies: >=20 > ServerRuntime runtime =3D new = ServerRuntime("cayenne-UntitledDomain.xml"); >=20 > To obtain a new ObjectContext, the following API is used: > =09 > ObjectContext context =3D cayenneRuntime.getContext(); >=20 >=20 > The variables "runtime" and "cayenneRuntime" should be changed to be > consistent, I think. Good catch thanks. Andrus