Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 74421 invoked from network); 22 Jul 2009 14:30:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 14:30:29 -0000 Received: (qmail 9302 invoked by uid 500); 22 Jul 2009 14:14:09 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 9295 invoked by uid 500); 22 Jul 2009 14:14:09 -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 9285 invoked by uid 99); 22 Jul 2009 14:14:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 14:14:09 +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 (athena.apache.org: local policy) Received: from [212.82.104.187] (HELO web24714.mail.ird.yahoo.com) (212.82.104.187) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Jul 2009 14:13:58 +0000 Received: (qmail 69843 invoked by uid 60001); 22 Jul 2009 14:13:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s1024; t=1248272016; bh=rDnGPxW9Gpe8b3VkCHZ3Qjvu70WOB5HTewB1EJ5y5C8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=2Zor7gnGaQnrXWslNff0ygm+/6QMWSYijuBnUaQ1R3WXoJYr3fXVdeWPbYkZYawnM8U5Y73Q96Zs7TZKlrAUjcit1uDa8E3FyGXvttY2Sfr8epeVFtMF/At/jz97xClq3qiWOAi4TLzSxcibu9e4AU63uEaBFHgFGO8DoyWiNyM= 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=Jn3B+cQOeimiMSqSi51h7mGHtdVXWyCO2WKZECK+bk8eWO1d22+PQp6Tk0YDpefXki0MBRMD+tLTq3vT7JEt+p0dnktC6FsTPxGINjWTaz3PM7S00JYg+OECt08ojDrwZhtUHDxB7GJjkn0GsLy+vnwm0QuE8AXUp5bP+ovsJ+I=; Message-ID: <32192.69697.qm@web24714.mail.ird.yahoo.com> X-YMail-OSG: f.BiInIVM1kQIRTQckrfXvtrCsA8rzOksEtXxnnYHkyNBXhgUergkDISyrcQVRV5jBoCpS4aK1sOMoKdFN6AehGP0QJYHbZ.0BMNVzfITW4NrkU8GX29kq34feEtlbZGAnpZjLwT8E8oe6B6Bq95PEJhB0hU4g58SaruTWq64Q7wK8clgC599SGfbhZ79elCPmO5GwficmqOkvhSik7oDj6NugQ0q8B6Dkh5i.crXWS3lAN87N6OBOkIiJk554cSc_.u1VxNXpYJOSNuwn_JMm3UIKACUpWEmKvEYvDMQTlF7qCcHEF5Lw-- Received: from [80.23.111.210] by web24714.mail.ird.yahoo.com via HTTP; Wed, 22 Jul 2009 14:13:35 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> <652593.32410.qm@web24706.mail.ird.yahoo.com> Date: Wed, 22 Jul 2009 14:13:35 +0000 (GMT) From: Emanuele Maiarelli Subject: Re: Different DataContext To: user@cayenne.apache.org In-Reply-To: <652593.32410.qm@web24706.mail.ird.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1051189566-1248272015=:69697" X-Virus-Checked: Checked by ClamAV on apache.org --0-1051189566-1248272015=:69697 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable and i will look into localObjects solution, this might lead to less concurr= ency problems...=0A=0A=0A=0A=0A=0A________________________________=0ADa: Em= anuele Maiarelli =0AA: user@cayenne.apache.org; reinout@g= mail.com=0AInviato: Mercoled=EC 22 luglio 2009, 15:56:59=0AOggetto: Re: Dif= ferent DataContext=0A=0AYou welcome Reinout,=0A=0A I'm not familiar with= Apache Wicket, and honeslty i'd like frameworks will handle all ThreadLoca= l/contexts issues... =0Aand 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: Reinout van Schouwen =0AA: user@c= ayenne.apache.org=0AInviato: Mercoled=EC 22 luglio 2009, 15:47:01=0AOggetto= : Re: Different DataContext=0A=0AHi,=0A=0A2009/7/22 Mike Kienenberger :=0A> If you know that Person is not in a modified state, yo= u can make a=0A> local copy of Person in your nameObj's data context.=0A=0A= Thanks, Mike and Emanuele, getting the object context from the nameObj=0Ain= deed 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 r= etrieve the=0Adatacontext from either one, and handle both objects from tha= t=0Acontext?=0A=0A-- =0AReinout van Schouwen=0Ahttp://vanschouwen.info/=0A= =0A=0A --0-1051189566-1248272015=:69697--