Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 85722 invoked from network); 10 Dec 2004 10:36:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Dec 2004 10:36:24 -0000 Received: (qmail 89090 invoked by uid 500); 10 Dec 2004 10:35:58 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 89069 invoked by uid 500); 10 Dec 2004 10:35:57 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 89046 invoked by uid 99); 10 Dec 2004 10:35:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from xmail03.myhosting.com (HELO xmail03.myhosting.com) (168.144.250.217) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 10 Dec 2004 02:35:55 -0800 Received: (qmail 10303 invoked from network); 10 Dec 2004 10:35:52 -0000 Received: from adsl-213-180-184-78.cybernet.ch (HELO masterpoint.com) (Authenticated-user:_godenzi@masterpoint.com@[213.180.184.78]) (envelope-sender ) by xmail03.myhosting.com (qmail-ldap-1.03) with SMTP for ; 10 Dec 2004 10:35:52 -0000 Message-ID: <41B97C07.8090602@masterpoint.com> Date: Fri, 10 Dec 2004 11:35:51 +0100 From: Silvio Godenzi Reply-To: Apache Torque Developers List User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Developers List Subject: creation sequence References: <41B7B411.3080401@douma.nu> <43b026c7041208203551768f70@mail.gmail.com> <41B83122.8020805@douma.nu> <41B85628.1050406@douma.nu> <41B87D49.4010302@masterpoint.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N >>dropping everything in reverse order than it was created should >>avoid referential integrity violations. >> >> > >But what is the "creation sequence"? > One valid creation sequence can be found out by doing a topological sort on the DB schema. > This might be different for >different databases (consider inline foreign key generation to >outside). > > Small support in the in the org.apache.torque.adapter.DB like public abstract boolean hasOutsideForeignKeys() would be helpful. Regards Silvio --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org