db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Eade <se...@backstagetech.com.au>
Subject Re: IdGenerator for table 'x' is null Error Help
Date Wed, 25 Feb 2004 12:36:48 GMT
The other thing to check would be that the database name was specified 
as an attribute of the database element in the schema (logical name that 
corresponds to the value used in Torque.properties).

Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



Daniel Kreuzhofer wrote:

>Did you get a solution for this problem? I have the same problem with
>torque 3.1.
>
> 
>Mit freundlichen Grüßen
> 
>Daniel Kreuzhofer
> 
>---------------------------------------------
> 
>netoption GbR
>Multimedia - Netzwerk - Online-Solutions
>Geschäftsführer: Daniel Kreuzhofer
>                  und Christian Kopecky
>
>Truderinger Str. 13
>81677 München
>Tel.: +49 89 4576909-0
>Fax : +49 89 4576909-9
>e-Mail : mailto:info@netoption.de
>www : http://www.netoption.de
>
>
>  
>
>>-----Original Message-----
>>From: Phillip Rhodes [mailto:spamsucks@rhoderunner.com] 
>>Sent: Tuesday, January 27, 2004 7:26 AM
>>To: torque-user@db.apache.org
>>Subject: IdGenerator for table 'x' is null Error Help
>>
>>
>>I am running torque 3.1.  I get an error when I try to save a 
>>object of type SubGroupSummary.  I have seen this error in 
>>the mailing list archives, it was either
>>a) they did not set the adapter (e.g. mysql)
>>or
>>b) they did not specify the correct idMethod
>>
>>I believe that I have both a) and b) correct.  But just to 
>>make certain, can someone just check my configuration?  I 
>>appreciate it. I can do selects fine...
>>
>>torque.database.hra.adapter=mysql
>>torque.database.default=hra 
>>torque.dsfactory.hra.factory=org.apache.torque.dsfactory.Share
>>dPoolDataSourceFactory
>>torque.dsfactory.hra.pool.defaultMaxActive=30
>>torque.dsfactory.hra.pool.testOnBorrow=true
>>torque.dsfactory.hra.pool.validationQuery=SELECT 1 
>>torque.dsfactory.hra.connection.driver=com.mysql.jdbc.Driver
>>torque.dsfactory.hra.connection.url=jdbc:mysql://127.0.0.1:3306/hra
>>torque.dsfactory.hra.connection.user=
>>torque.dsfactory.hra.connection.password=
>>
>><table name="SUB_GROUP_SUMMARY" idMethod="native">
>>  <column name="SUB_GROUP_SUMMARY_ID"
>>  autoIncrement="true" required="true"
>>  primaryKey="true" type="INTEGER"/>
>><!-- snip! -->
>></table>
>>
>>using commons-dbcp-20030825.184428.jar
>>
>>org.apache.torque.TorqueException: IdGenerator for table 
>>'SUB_GROUP_SUMMARY' is null
>>    
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message