Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11BF784BB for ; Sat, 3 Sep 2011 21:16:47 +0000 (UTC) Received: (qmail 44647 invoked by uid 500); 3 Sep 2011 21:16:47 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 44524 invoked by uid 500); 3 Sep 2011 21:16:45 -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 44516 invoked by uid 99); 3 Sep 2011 21:16:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 21:16:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.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; Sat, 03 Sep 2011 21:16:37 +0000 Received: (qmail 4270 invoked from network); 3 Sep 2011 21:16:15 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 3 Sep 2011 21:16:15 -0000 From: Andrus Adamchik Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: ObjectContext.localObject refactoring Date: Sat, 3 Sep 2011 17:16:15 -0400 Message-Id: <2757194C-BCFC-4118-93B9-203D610E65E2@objectstyle.org> To: dev@cayenne.apache.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/jira/browse/CAY-1611 I've got tired of doing: Artist localArtist =3D (Artist) = context.localArtist(artist.getObjectId(), null); Aside from causing confusion about the second argument (should it be = 'artist'? no, it should be null), it is still plain ugly. Anyone sees = any flaws with the reasoning behind this Jira? Andrus=