Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 6590 invoked from network); 13 Jul 2006 07:53:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 07:53:37 -0000 Received: (qmail 26097 invoked by uid 500); 13 Jul 2006 07:53:37 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 26078 invoked by uid 500); 13 Jul 2006 07:53:37 -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 26067 invoked by uid 99); 13 Jul 2006 07:53:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 00:53:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 00:53:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 15EE7410506 for ; Thu, 13 Jul 2006 07:51:37 +0000 (GMT) Message-ID: <7560722.1152777097086.JavaMail.jira@brutus> Date: Thu, 13 Jul 2006 07:51:37 +0000 (GMT+00:00) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-19) index tag and unique tag exists in dtd but DatabaseIO().write generate XML without index and unique elements In-Reply-To: <1986667963.1127833487919.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-19?page=all ] Thomas Dudziak updated DDLUTILS-19: ----------------------------------- Component: Core (No specific database) > index tag and unique tag exists in dtd but DatabaseIO().write generate XML without index and unique elements > ------------------------------------------------------------------------------------------------------------ > > Key: DDLUTILS-19 > URL: http://issues.apache.org/jira/browse/DDLUTILS-19 > Project: DdlUtils > Type: Bug > Components: Core (No specific database) > Environment: Linux Fedora 4 jdk1.5.0_04 > Reporter: Andre Charles Legendre > Assignee: Thomas Dudziak > Fix For: 1.0 > > index tag and unique tag exists in both dtd but I > found no index element nor unique element created when > I have generated XML from our database using > DatabaseIO().write > For example a postgres table created by : > CREATE TABLE MFG_BatchType > ( > Id numeric(10,0) unique not null, > AD_Client_ID numeric(10,0) not null, > AD_Org_ID numeric(10,0) not null, > IsActive varchar(1) not null default 'Y', > Created timestamp not null default CURRENT_TIMESTAMP, > CreatedBy numeric(10,0) not null, > Updated timestamp not null default CURRENT_TIMESTAMP, > UpdatedBy numeric(10,0) not null, > Name varchar(200) not null, > No_version varchar(32) not null, > Description varchar(2000) not null, > Cycle_Time numeric(10,0) not null, > Cycle_Qty float8 not null, > primary key(Id) > ); > CREATE INDEX MFG_BatchTypeNDX1 ON MFG_BatchType(Id); > -- ---------------------------------------------------------------------- > COMMENT ON COLUMN MFG_BatchType.Description is 'Cycle, one shot or when completed'; > COMMENT ON COLUMN MFG_BatchType.Cycle_Time is 'if batch type is cycle'; > COMMENT ON COLUMN MFG_BatchType.Cycle_Qty is 'Number of work orders to introduce when WIP minimum is reached'; > Give this XML : > > > > > > > > > > > > > > >
> As you can see index and comment disapear for comment, it is not an issue but for index yes. -- 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