After a short look into several generated sources i have to agree with Alex,
imho these throws declarations are not neccessary for the mentioned
setSomeForeignKey() methods. I would appreciate if the declarations would be
removed with the next release.

so long
Micha

> -----Original Message-----
> From: Alexandru Dovlecel [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 13, 2004 12:11 PM
> To: 'Apache Torque Users List'
> Subject: SetFkId throws TorqueException
>
>
> Hi all,
>
> Another inconsistency: I have a table X that has a foreign key
> column called
> IdY. When generating the code, the method SetIdY has the following
> signature:
> public void setIdY( int id ) throws TorqueException
>
> The method does not have to contain the throws clause because there is no
> method call in this method that could throw such an exception. So
> each time
> I use such an setFkIdMethod I have to surround it with a Try Catch. Yuch.
> The fields that are NOT foreign keys receive methods that don't throw a
> TorqueException. I think here it could be a slight inconsistency???
>
> Pls correct me if I am wrong.
>
> In order to correct this, I think I have to change one velocity template.
> But I would like to stick to the official version, without
> changing to much
> of the templates. Should this change of the templates be made in the
> following release, what do you think?
>
> Alex
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.656 / Virus Database: 421 - Release Date: 09.04.2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 09.04.2004


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to