Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37231F38F for ; Thu, 25 Apr 2013 18:49:09 +0000 (UTC) Received: (qmail 34684 invoked by uid 500); 25 Apr 2013 18:49:09 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 34660 invoked by uid 500); 25 Apr 2013 18:49:09 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 34651 invoked by uid 99); 25 Apr 2013 18:49:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2013 18:49:08 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2013 18:49:04 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UVRDU-0000MO-6m for users@openjpa.apache.org; Thu, 25 Apr 2013 11:48:24 -0700 Date: Thu, 25 Apr 2013 11:48:24 -0700 (PDT) From: Pinaki Poddar To: users@openjpa.apache.org Message-ID: <1366915704194-7583780.post@n2.nabble.com> In-Reply-To: References: Subject: Re: Insert new record + update child object MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org public void saveExam(Exam exam){ ejbContext.getUserTransaction().begin(); //DOES THIS WORK? exam = em.merge(exam); ejbContext.getUserTransaction().commit(); } ----- Pinaki Poddar Chair, Apache OpenJPA Project -- View this message in context: http://openjpa.208410.n2.nabble.com/Insert-new-record-update-child-object-tp7583389p7583780.html Sent from the OpenJPA Users mailing list archive at Nabble.com.