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-148) remove throws clause in setter for referenced object by a foreign key
Date Mon, 24 Sep 2012 07:08:12 GMT

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

Thomas Fox closed TORQUE-148.
-----------------------------

    
> remove throws clause in setter for referenced object by a foreign key
> ---------------------------------------------------------------------
>
>                 Key: TORQUE-148
>                 URL: https://issues.apache.org/jira/browse/TORQUE-148
>             Project: Torque
>          Issue Type: Improvement
>            Reporter: Thomas Fox
>            Assignee: Thomas Fox
>            Priority: Minor
>             Fix For: 4.0-beta1
>
>
> for the schema
>   <table name="book" description="Book table">
>     ....
>     <foreign-key foreignTable="author">
>       <reference local="author_id" foreign="author_id"/>
>     </foreign-key>
>   </table>
> Torque generates (complexObjectModel=true) in BaseBook:
>     public void setAuthor(Author v) throws TorqueException
>     {
>         if (v == null)
>         {
>             setAuthorId(0);
>         }
>         else
>         {
>             setAuthorId(v.getAuthorId());
>         }
>         aAuthor = v;
>     }
> the TorqueException in the throws clause of the method is never thrown and 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