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 39CFF68BC for ; Wed, 15 Jun 2011 00:22:57 +0000 (UTC) Received: (qmail 14763 invoked by uid 500); 15 Jun 2011 00:22:57 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 14728 invoked by uid 500); 15 Jun 2011 00:22:57 -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 14720 invoked by uid 99); 15 Jun 2011 00:22:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 00:22:57 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.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; Wed, 15 Jun 2011 00:22:50 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QWdsL-0004io-J5 for users@openjpa.apache.org; Tue, 14 Jun 2011 17:22:29 -0700 Date: Tue, 14 Jun 2011 17:22:29 -0700 (PDT) From: Pinaki Poddar To: users@openjpa.apache.org Message-ID: <1308097349582-6476786.post@n2.nabble.com> In-Reply-To: <1308096024794-6476707.post@n2.nabble.com> References: <1308089889996-6476296.post@n2.nabble.com> <1308095839112-6476693.post@n2.nabble.com> <1308096024794-6476707.post@n2.nabble.com> Subject: Re: Update statements not generated for a @OneToMany mapping (with persistent entity) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org add cascade type MERGE, and call em.merge(settlement). Remember that merge returns a Settlement different than its input argument. Looks like a non-owning, owning side issue. Settlement is the non-owning side of the relation. Owning side is the one that has the Foreign Key for the relation in the database. ----- Pinaki -- View this message in context: http://openjpa.208410.n2.nabble.com/Update-statements-not-generated-for-a-OneToMany-mapping-with-persistent-entity-tp6476296p6476786.html Sent from the OpenJPA Users mailing list archive at Nabble.com.