Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-148

remove throws clause in setter for referenced object by a foreign key

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0-beta1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            tfischer Thomas Fox
            tfischer Thomas Fox
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: