From dev-return-5870-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Fri Aug 24 08:43:09 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 40305 invoked from network); 24 Aug 2007 08:43:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 08:43:00 -0000 Received: (qmail 659 invoked by uid 500); 24 Aug 2007 08:42:52 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 625 invoked by uid 500); 24 Aug 2007 08:42:52 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 599 invoked by uid 99); 24 Aug 2007 08:42:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 01:42:52 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 08:43:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D558971421D for ; Fri, 24 Aug 2007 01:42:31 -0700 (PDT) Message-ID: <20073214.1187944951871.JavaMail.jira@brutus> Date: Fri, 24 Aug 2007 01:42:31 -0700 (PDT) From: "Uri Boness (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-332) Add a new native sequence type where a separate sequence is used for each table in the database In-Reply-To: <15267555.1187944831270.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uri Boness updated OPENJPA-332: ------------------------------- Attachment: ClassTableNativeJDBCSeq.java An initial sketch for the sequence implementation. Was only tested on very simple mappings - probably needs to be improved! > Add a new native sequence type where a separate sequence is used for each table in the database > ----------------------------------------------------------------------------------------------- > > Key: OPENJPA-332 > URL: https://issues.apache.org/jira/browse/OPENJPA-332 > Project: OpenJPA > Issue Type: Wish > Components: jdbc > Affects Versions: 0.9.7 > Reporter: Uri Boness > Attachments: ClassTableNativeJDBCSeq.java > > > Currently, when defining the entity id in a parent class (mapped superclass), the native sequence type generates only one sequence which will be used by all enties/tables. The only possibility to have a sequence per class-hierarchy is by using a table sequence. In databases that support native sequence objects it is more natural to use such sequences rather than sequence tables. It would be nice if openjpa would provide a "class-hierarchy-native" sequence type which will use a sequence per mapped table. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.