Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0564CE16 for ; Mon, 11 Jun 2012 11:52:59 +0000 (UTC) Received: (qmail 52637 invoked by uid 500); 11 Jun 2012 11:52:59 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 52413 invoked by uid 500); 11 Jun 2012 11:52:56 -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 Delivered-To: moderator for user@cayenne.apache.org Received: (qmail 43880 invoked by uid 99); 11 Jun 2012 11:49:36 -0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of carlosraimundo37@gmail.com) Date: Mon, 11 Jun 2012 04:49:11 -0700 (PDT) From: inovation To: user@cayenne.apache.org Message-ID: <1339415351297-4024255.post@n3.nabble.com> In-Reply-To: References: <1338925480358-4024219.post@n3.nabble.com> Subject: Re: Transaction Fails - when saving interdependent entities. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org hi! I have a similar question. Even if I=C2=B4m using the Cayenne=C2=B4s Transaction class, I have to comm= it object=C2=B4s context during the operation? I mean... I have related objects and I want t= o set a field in second object which is the ID of the first one ... And I=C2= =B4m getting a nullpointer exception... I=C2=B4ve already tried to commitContext= () before the first Insert on DB, but unfortunately with no success .=20 Can you help me please? Thks in advance! -- View this message in context: http://cayenne.195.n3.nabble.com/Transaction-= Fails-when-saving-interdependent-entities-tp4024215p4024255.html Sent from the Cayenne - User mailing list archive at Nabble.com.