Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 13469 invoked from network); 14 Nov 2005 20:22:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Nov 2005 20:22:53 -0000 Received: (qmail 54346 invoked by uid 500); 14 Nov 2005 20:22:52 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 54303 invoked by uid 500); 14 Nov 2005 20:22:52 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 54291 invoked by uid 99); 14 Nov 2005 20:22:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 12:22:49 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 7693AC9 for ; Mon, 14 Nov 2005 21:22:28 +0100 (CET) Message-ID: <1771632349.1131999748382.JavaMail.jira@ajax.apache.org> Date: Mon, 14 Nov 2005 21:22:28 +0100 (CET) From: "Juliano Julio (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Commented: (DDLUTILS-47) An identity column should be an primary key In-Reply-To: <2136008441.1131996627958.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 [ http://issues.apache.org/jira/browse/DDLUTILS-47?page=comments#action_12357622 ] Juliano Julio commented on DDLUTILS-47: --------------------------------------- Exactly! That is the point! If I setPrimaryKey(true) and setAutoincrement(true) this suppose to generate: create table TABLE_NAME (PK_NAME int generated always (or default) as identity ..., PRIMARY KEY (PK_NAME) ); But the ddlutils isn't work like this... this is the reason: * Determines whether we should generate a primary key constraint for the given * primary key columns. By default if there are no primary keys or the column(s) are * all auto increment (identity) columns then there is no need to generate a primary key * constraint. > An identity column should be an primary key > ------------------------------------------- > > Key: DDLUTILS-47 > URL: http://issues.apache.org/jira/browse/DDLUTILS-47 > Project: DdlUtils > Type: Bug > Environment: Tested on Hsql and Derby > Reporter: Juliano Julio > Assignee: Thomas Dudziak > Priority: Blocker > > An identity column should be a primary key too! The method shouldGeneratePrimaryKeys on SqlBuilder don't allow this. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira