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 Fischer
Assignee: Thomas Fischer
Priority: Minor
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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]