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: single column pk tables
Date Mon, 23 Aug 2004 12:19:31 GMT
Ferruh Zamangoer wrote:

>Hi NG,
>in michaels posting my experience with torque I read the following:
>	in torque's docs i have not seen any word speaking about the restriction to
>single column pk tables.
>Are there no another way to solve this problem, if I have single column pk
>In my schema I use the  defaultIdMethod="native"
><table name="freetext" description="freetext">
>  name="id_freetext"
>  required="true"
>  primaryKey="true"
>  type="INTEGER"
>  size="5"
>  description="ID Freetext"/>
><id-method-parameter value="freetext_seq"/>
>How can I set any value to a table, which is defined like the table above ??
>I've tried the following code but it doesn't works:
>Freetext freetext = new Freetext();
>Any help is appreciated!
Such a table is totally pointless and is hence rejected by the Torque 

Try adding some actual data columns to the table definition.


Scott Eade
Backstage Technologies Pty. Ltd.

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

View raw message