Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 88871 invoked from network); 13 Jul 2004 09:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jul 2004 09:26:13 -0000 Received: (qmail 11910 invoked by uid 500); 13 Jul 2004 09:26:11 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 11814 invoked by uid 500); 13 Jul 2004 09:26:10 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 11799 invoked by uid 99); 13 Jul 2004 09:26:10 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [213.188.99.162] (HELO mail.telenet-ag.de) (213.188.99.162) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 13 Jul 2004 02:26:07 -0700 Received: from notes.ip3k.de (notes.ip3k.de [193.96.234.114]) by mail.telenet-ag.de (8.12.8/8.12.8) with ESMTP id i6D9PwEN023688 for ; Tue, 13 Jul 2004 11:25:58 +0200 To: "Apache Torque Users List" Subject: Re: IdGenerator is null MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: From: a.winter@telenet-ag.de Date: Tue, 13 Jul 2004 11:23:12 +0200 X-MIMETrack: Serialize by Router on notes-rhm-1/telenet-ag/de(Release 5.0.11 |July 24, 2002) at 13.07.2004 11:23:13, Serialize complete at 13.07.2004 11:23:13 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Ron, I had the same problem with an oracle database. My solution was to add the table ID_TABLE: create table ID_TABLE (ID_TABLE_ID NUMBER(20) NOT NULL, TABLE_NAME VARCHAR2(50) NOT NULL, NEXT_ID NUMBER(20) NOT NULL, QUANTITY NUMBER(20) NOT NULL) In my case the table is empty, because I'm using oracle sequence numbers. Hope that helps, Arndt ron piterman 13.07.2004 11:07 Please respond to "Apache Torque Users List" To: Apache Torque Users List cc: Subject: Re: IdGenerator is null I don't know if it mutters, but I also habe: torque.idbroker.cleverquantity=true Andras Balogh wrote: > Hello, > > How is your torque.properties file look like? > Do you have a line like: > torque.database..adapter=mysql > ? > > Best regards, > Andras. > > ron piterman wrote: > >> Hi, >> I am using torque with mysql, generating the schema vie the ant jdbc >> task, and then the obejct model with the om task. >> When calling save(connection) on a new object (thus inserting), I get >> an exception: IdGenerator is null. >> in my Map classes, the generator method is set to NATIVE. >> What did I forget? >> Cheers, >> Ron >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >> For additional commands, e-mail: torque-user-help@db.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org