Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 18230 invoked from network); 4 Oct 2006 16:43:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2006 16:43:01 -0000 Received: (qmail 38069 invoked by uid 500); 4 Oct 2006 16:43:01 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 37986 invoked by uid 500); 4 Oct 2006 16:43:01 -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 37977 invoked by uid 99); 4 Oct 2006 16:43:01 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2006 09:43:01 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=michael.d.dick@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [64.233.182.191] ([64.233.182.191:7195] helo=nf-out-0910.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 7F/32-17684-F84E3254 for ; Wed, 04 Oct 2006 09:42:57 -0700 Received: by nf-out-0910.google.com with SMTP id c29so523243nfb for ; Wed, 04 Oct 2006 09:42:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FfUEtzWk5XoW1Xxqnt7mMu0HA5+hK9KyLZQSqMg/SxBkTbXOxIUP2lNDTh4YjPltMHMXGC+FwUyRYsrkCQ3wY3NpRrOMShWcCBBdk+aGTH/Mm+/BPpAdrkrifi940+derx2LEUkrrbo4sVurn/bJrCoVQZG2lpDhI2HpxD+nOUo= Received: by 10.49.41.12 with SMTP id t12mr2555351nfj; Wed, 04 Oct 2006 09:42:52 -0700 (PDT) Received: by 10.49.64.18 with HTTP; Wed, 4 Oct 2006 09:42:52 -0700 (PDT) Message-ID: <72c1350f0610040942r2671201em9da6714477017d58@mail.gmail.com> Date: Wed, 4 Oct 2006 11:42:52 -0500 From: "Michael Dick" To: open-jpa-dev@incubator.apache.org Subject: Re: Problem with sequence trying to commit inside a JTA tx In-Reply-To: <7D856CDFE035FF45A0420ACBD71BDD63021BF357@repbex02.amer.bea.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33525_4973364.1159980172289" References: <9C1D8855-A573-4A76-B388-81EEE08AD8DA@yahoo.com> <7D856CDFE035FF45A0420ACBD71BDD63021BF357@repbex02.amer.bea.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_33525_4973364.1159980172289 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/4/06, Patrick Linskey wrote: > > > Following the advice there (and elsewhere) I managed to get my > > example working!!! The main step appears to be including a non-jta > > datasource. > > Cool. > > > I'm still unable to figure out how to get the tables auto-created. > > Putting properties in persistence.xml or feeding them to > > persistenceProvider.createContainerEntityManagerFactory doesn't seem > > to have any discernable effect. Any advice on how to figure > > out what > > is going on? > > Have you set the SynchronizeMappings property? > > > Is there an m2 plugin for running the tools for e.g. creating > > tables, > > db scripts, etc? > > Not currently, no. You can probably use the ant-maven plugin to run the mapping tool ant task, or to invoke the mapping tool class directly. It can be tricky to get the classpath set up properly (http://issues.apache.org/jira/browse/OPENJPA-8) but those issues should be ironed out by now. "Native" m2 plugins sound like a good idea though. > Also, it appears that the documentation generally says > > property names > > are e.g. openjpa.jdbc.kernel.PropertyName whereas there is some > > indication in the code that they are the more correct > > org.apache.openjpa.jdbc.kernel.PropertyName. Which is right? If > > they are actually as per the docs shouldn't they be changed pronto? > > Actually, generally they're of the form openjpa.PropertyName for > general-purpose (non-JDBC-specific) properties, and > openjpa.jdbc.PropertyName for JDBC-specific stuff. > > Personally, I think that adding the org.apache. to the beginning is more > noisy than anything else. But obviously, it'd be possible to do so. I agree about the noise. Adding another prefix seems pretty easy to do, but it might just make things more confusing to accept openjpa.xxx and org.apache.openjpa.xxxx for the same property. > -Patrick > _______________________________________________________________________ > Notice: This email message, together with any attachments, may contain > information of BEA Systems, Inc., its subsidiaries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete it. > -- -Michael Dick ------=_Part_33525_4973364.1159980172289--