Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 60886 invoked from network); 22 Jul 2009 13:56:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 13:56:28 -0000 Received: (qmail 73624 invoked by uid 500); 22 Jul 2009 13:57:33 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 73610 invoked by uid 500); 22 Jul 2009 13:57:33 -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 73600 invoked by uid 99); 22 Jul 2009 13:57:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 13:57:33 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.82.104.179] (HELO web24706.mail.ird.yahoo.com) (212.82.104.179) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Jul 2009 13:57:20 +0000 Received: (qmail 62549 invoked by uid 60001); 22 Jul 2009 13:56:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s1024; t=1248271019; bh=9VRTfBUJEvnJNUkH89epa1YImbs9WMPNMA9/7YBdgIs=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=V/Ap4agwAFLdNCsit1mBRVzJm8tkrHURv+EuGNXJCdClxBkv7CW5QkZFjD+wvDt/6U5bz53F97h8m1kH7nt+Os36la6bByyNSmaW0aiQ57PKQrPOKb2vzoYJ9tBP0hEeVZzZ8YiJKnGlOAEt4aIotfK7bIkHjVIlP3GfgV7vEl0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=n4FXnJlFb8c/t7RrrNDtAn6f2ACd+/hfYnySIdiGMnAdJUXYVMw0HIhAMm9YKYDfnLmHohPcwPskSfNBcoaw9p3b3c76EjmjxHmx9A0ioTA08xqygjG82ClTZqUaM4rsj0DPJbD4qaS9I2Y4C6ZIa9EFLS6H4JRdgtRIosMD6UA=; Message-ID: <652593.32410.qm@web24706.mail.ird.yahoo.com> X-YMail-OSG: fYntI38VM1nA6Bbrimd0w4I6Dfj0sUloLoWca2d0ZOK.T6oaZAE.pE4WKjCP5bjXCHao6kgm55Z5phPTg_b7JZUC1NK.eY.UeciTrIGgLIbgDuOE.sQfqiy7WkY4V1O40Wr.L21earyRYHRgEv0N.ZV1cUd.qEPj2bkXJjKn8xL0LbCT91sHzw9Dksl53tZJl_snNkFJoAgxelro2bVuT9FyVYXRrH3Ep9oIQJXeNaPsg3O81v2LJE3Fn7tjkTjkkeM4xUTrgWXYF4Ezlpzk0jJarKL_rT2yOZ6GFmnSm2oUYIMCGpXmcg-- Received: from [80.23.111.210] by web24706.mail.ird.yahoo.com via HTTP; Wed, 22 Jul 2009 13:56:59 GMT X-Mailer: YahooMailRC/1358.22 YahooMailWebService/0.7.289.15 References: <882332.93932.qm@web24707.mail.ird.yahoo.com> <7163.22578.qm@web24707.mail.ird.yahoo.com> <8f985b960907220539k4945f2dfoef094d9483335074@mail.gmail.com> Date: Wed, 22 Jul 2009 13:56:59 +0000 (GMT) From: Emanuele Maiarelli Subject: Re: Different DataContext To: user@cayenne.apache.org, reinout@gmail.com In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-889507860-1248271019=:32410" X-Virus-Checked: Checked by ClamAV on apache.org --0-889507860-1248271019=:32410 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable You welcome Reinout,=0A=0A I'm not familiar with Apache Wicket, and hone= slty i'd like frameworks will handle all ThreadLocal/contexts issues... =0A= and in the case of Wicket im not sure if there's a better way than the one = i suggested=0A=0A=0A=0A=0A=0A=0A=0A________________________________=0ADa: R= einout van Schouwen =0AA: user@cayenne.apache.org=0AInvi= ato: Mercoled=EC 22 luglio 2009, 15:47:01=0AOggetto: Re: Different DataCont= ext=0A=0AHi,=0A=0A2009/7/22 Mike Kienenberger :=0A> If = you know that Person is not in a modified state, you can make a=0A> local c= opy of Person in your nameObj's data context.=0A=0AThanks, Mike and Emanuel= e, getting the object context from the nameObj=0Aindeed solves the problem.= =0A=0AIs this something to be aware of at all times? I.e. when creating a= =0Alink between two objects, is it best practice to retrieve the=0Adatacont= ext from either one, and handle both objects from that=0Acontext?=0A=0A-- = =0AReinout van Schouwen=0Ahttp://vanschouwen.info/=0A=0A=0A=0A --0-889507860-1248271019=:32410--