Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 59025 invoked from network); 8 Jul 2005 01:26:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2005 01:26:16 -0000 Received: (qmail 78767 invoked by uid 500); 8 Jul 2005 01:26:03 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 78648 invoked by uid 500); 8 Jul 2005 01:26:02 -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 78615 invoked by uid 99); 8 Jul 2005 01:26:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 18:26:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [66.250.40.202] (HELO saturn.opentools.org) (66.250.40.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 18:26:00 -0700 Received: by saturn.opentools.org (Postfix, from userid 500) id AE35A3E73; Thu, 7 Jul 2005 21:28:19 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by saturn.opentools.org (Postfix) with ESMTP id A84BEF34F for ; Thu, 7 Jul 2005 21:28:19 -0400 (EDT) Date: Thu, 7 Jul 2005 21:28:19 -0400 (EDT) From: Aaron Mulder X-X-Sender: ammulder@saturn.opentools.org To: dev@geronimo.apache.org Subject: PK Generator Status Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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. 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