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 <ron.piterman@gmx.net>
13.07.2004 11:07
Please respond to "Apache Torque Users List"
To: Apache Torque Users List <torque-user@db.apache.org>
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.<yourdb_name>.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
|