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 590FDE130 for ; Fri, 1 Feb 2013 11:18:14 +0000 (UTC) Received: (qmail 98339 invoked by uid 500); 1 Feb 2013 11:18:14 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 97990 invoked by uid 500); 1 Feb 2013 11:18: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 97945 invoked by uid 99); 1 Feb 2013 11:18:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 11:18:08 +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 (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of sudharshan.darapaneedi@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 11:18:03 +0000 Received: from jim.nabble.com ([192.168.236.80]) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U1Eco-0005Rv-9G for users@openjpa.apache.org; Fri, 01 Feb 2013 03:17:42 -0800 Date: Fri, 1 Feb 2013 03:17:42 -0800 (PST) From: sudhi To: users@openjpa.apache.org Message-ID: <1359717462256-7582683.post@n2.nabble.com> In-Reply-To: <1218131856693-679216.post@n2.nabble.com> References: <1218120044.20643.18.camel@localhost> <1218121167549-678793.post@n2.nabble.com> <1218121546.20643.21.camel@localhost> <1218131856693-679216.post@n2.nabble.com> Subject: Re: Inconsistent execution order of INSERT statements using cascading persist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello Pinaki, i am facing same kind of issue, I had raised a question here http://openjpa.208410.n2.nabble.com/OpenJPA-2-2-0-Oracle-Issue-td7582658.html After seeing this post i tried with @ForeignKey annotation and it works now. So my question is why we have to use OpenJPA specific annotations??? I believe Cascade definitions should be sufficient to identify parent child insertion order?? -- View this message in context: http://openjpa.208410.n2.nabble.com/Inconsistent-execution-order-of-INSERT-statements-using-cascading-persist-tp678745p7582683.html Sent from the OpenJPA Users mailing list archive at Nabble.com.