db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TORQUE-149) If silentDbFetch is false, the add method for a related object has a throws clause
Date Mon, 24 Sep 2012 07:08:16 GMT

     [ https://issues.apache.org/jira/browse/TORQUE-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Fox closed TORQUE-149.
-----------------------------

    
> 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 Fox
>            Assignee: Thomas Fox
>             Fix For: 4.0-beta1
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message