You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Thomas Fischer (JIRA)" <ji...@apache.org> on 2010/10/02 07:57:32 UTC
[jira] Resolved: (TORQUE-149) If silentDbFetch is false, the add
method for a related object has a throws clause
[ https://issues.apache.org/jira/browse/TORQUE-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fischer resolved TORQUE-149.
-----------------------------------
Assignee: Thomas Fischer
Fix Version/s: 3.3.1
Resolution: Fixed
> If silentDbFetch is false, the add method for a related object has a throws clause
> ----------------------------------------------------------------------------------
>
> Key: TORQUE-149
> URL: https://issues.apache.org/jira/browse/TORQUE-149
> Project: Torque
> Issue Type: Bug
> Reporter: Thomas Fischer
> Assignee: Thomas Fischer
> Fix For: 3.3.1
>
>
> If the option torque.om.silentDbFetch is false (which is NOT the default value), then Torque generates from the schema
> <table name="book" description="Book table">
> ....
> <foreign-key foreignTable="author">
> <reference local="author_id" foreign="author_id"/>
> </foreign-key>
> </table>
> the following code in BaseAuthor:
> public void addBook(Book l) throws TorqueException
> {
> getBooks().add(l);
> l.setAuthor((Author) this);
> }
> The throws clause is unnecessary because no Torque exception is created in the associated code. Thus the throws clause should be removed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org