Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 94347 invoked from network); 30 Oct 2006 14:46:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 14:46:38 -0000 Received: (qmail 52111 invoked by uid 500); 30 Oct 2006 14:46:49 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 51987 invoked by uid 500); 30 Oct 2006 14:46:49 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 51976 invoked by uid 99); 30 Oct 2006 14:46:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 06:46:48 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS 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, 30 Oct 2006 06:46:37 -0800 Received: from ajax.apache.org (localhost [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id EF818D49C1 for ; Mon, 30 Oct 2006 14:46:15 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: torque-dev@db.apache.org Date: Mon, 30 Oct 2006 14:46:15 -0000 Message-ID: <20061030144615.22456.76632@ajax.apache.org> Subject: [Db-torque Wiki] Update of "GettingTorqueToWork" by PeterHamlen X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Db-torque Wiki" for change notification. The following page has been changed by PeterHamlen: http://wiki.apache.org/db-torque/GettingTorqueToWork ------------------------------------------------------------------------------ Don't worry if you get this error, the way around it is to manually create the database and then use the command 'maven torque:insert-sql' to create your tables + + ---- + = Received exception inserting new object - "inserting null value in not-null primary key column" + + When I tried to create my first Torque project (other than the tutorial), I got a really wierd error trying to save a new Biller object. Torque complained that it was trying to insert a null "biller id" (the primary key for the object) when it ran the insert. + + The problem was that I had copied some of the XML from the tutorial (bookstore) and in particular had the xml that read "