Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 54325 invoked from network); 14 Nov 2006 06:49:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2006 06:49:30 -0000 Received: (qmail 80416 invoked by uid 500); 14 Nov 2006 06:49:40 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 80382 invoked by uid 500); 14 Nov 2006 06:49:40 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 80373 invoked by uid 99); 14 Nov 2006 06:49:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 22:49:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 22:49:25 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gjs6S-0001pz-Ih for open-jpa-dev@incubator.apache.org; Mon, 13 Nov 2006 22:49:04 -0800 Message-ID: <7332348.post@talk.nabble.com> Date: Mon, 13 Nov 2006 22:49:04 -0800 (PST) From: "roger.keays" To: open-jpa-dev@incubator.apache.org Subject: Re: How to pass openjpa.jdbc.* to tools? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: roger.keays@ninthavenue.com.au References: <7330961.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I am using the mapping tool with -action build and -sql out.sql to generate a DDL script. In order to get foreign keys created for me I set openjpa.jdbc.MappingDefaults=ForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=cascade. It works when included in persistence.xml, but not the command line or ant tasks. Marc Prud wrote: > > > Passing -MappingDefaults (and, I believe, "-mappingDefaults") should > certainly work. What indication are you seeing that it isn't working? > > > > On Nov 13, 2006, at 7:43 PM, roger.keays wrote: > >> >> I've been trying to pass an openjpa.jdbc.MappingDefaults >> configuration to the >> mappingTool, but it is just ignored. Is this possible? I tried: >> >> java org.apache.openjpa.jdbc.meta.MappingTool - >> mappingDefaults=blahblah ... >> >> and >> >> >> >> >> >> The docs say to use the last name of the config variable with a >> lowercase >> initial letter. It works for openjpa.*, but apparently not for >> openjpa.jdbc.* ? >> >> Thanks, >> >> Roger >> -- >> View this message in context: http://www.nabble.com/How-to-pass- >> openjpa.jdbc.*-to-tools--tf2627090.html#a7330961 >> Sent from the open-jpa-dev mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/How-to-pass-openjpa.jdbc.*-to-tools--tf2627090.html#a7332348 Sent from the open-jpa-dev mailing list archive at Nabble.com.