db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Shea <s...@gtsdesign.com>
Subject Re: torque delete
Date Wed, 24 Mar 2004 17:23:04 GMT
My experience is you get that error if the table has no primary key or
if torque's schema doesn't include the primary key.  Only the per-column
primaryKey= attribute will help; the index and unique sub-elements of
<table> have no effect on this problem.  If you have a multi-part
primary key, you can put a primaryKey= attribute in each of the <column>

Hope that helps...


On Wed, 24 Mar 2004, at 18:01 [+0100], Sheng Guo (sheng@in.tum.de) wrote:

> Hi,
> I am a new user of Torque, and I tried to delete some records from a 
> relation table ( which holds the n:m relation of the other two tables), 
> but it failed,
> the exception said:
> org.apache.torque.TorqueException: You must specify KeyDef attributes 
> for this TableDataSet in order to delete a Record.
> what does it mean, and how can I specify KeyDef attributes?
> Thanks
> Guo

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

View raw message