Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 78990 invoked from network); 8 Jul 2005 10:04:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2005 10:04:33 -0000 Received: (qmail 52497 invoked by uid 500); 8 Jul 2005 10:04:26 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 52452 invoked by uid 500); 8 Jul 2005 10:04:26 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 52435 invoked by uid 99); 8 Jul 2005 10:04:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 03:04:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [211.29.133.166] (HELO mail25.syd.optusnet.com.au) (211.29.133.166) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 03:04:24 -0700 Received: from [192.169.0.2] (d220-236-84-245.dsl.nsw.optusnet.com.au [220.236.84.245]) (authenticated bits=0) by mail25.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j68A4LWT012642 for ; Fri, 8 Jul 2005 20:04:21 +1000 Message-ID: <42CE501C.10604@optusnet.com.au> Date: Fri, 08 Jul 2005 20:06:20 +1000 From: Gianny Damour User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: PK Generator Status References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/07/2005 11:28 AM, Aaron Mulder wrote: > So I've put in the new PK generator configuration syntax. Once >again, the openejb-jar.xml syntax has changed. The old style of declaring >a separate PK Generator GBean is still supported, but with a different >element. I'm going to update the wiki shortly. > > There are some TranQL enhancements that would be nice: > >1) Implement a PK Generator that handles an EJB on a table that >automatically populates a PK value in itself (via an AUTO_INCREMENT column >or a trigger or whatever). I think it would basically just hold a column >name, and then the part of TranQL that created entities would need logic >to recognize that, perform the insert as usual, and then fetch the PK ID >value as an auto-generated key afterward. > > org.tranql.pkgenerator.AutoIncrementTablePrimaryKeyGenerator does that. Thanks, Gianny >2) If the option is implemented to dump DDL on startup, add the DDL for >each PK Generator too (with, for example, the INSERTs necessary for a >sequence table generator). I like that more than having the PK Generator >try to initialize its own tables or whatever on every startup and just >suppress any exceptions. > >Aaron > > >