Torque
  1. Torque
  2. TORQUE-99

Missing connection parameter in method copy(...) and add<ForeignKey>(...)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3-RC2
    • Fix Version/s: 3.3-RC3
    • Component/s: Generator
    • Labels:
      None

      Description

      Missing connection parameter in methods copy(...) and add<ForeignKey>(...). Using this methods within a transaction could lead to deadlocks. Patches attached.

      1. Object.vm
        70 kB
        Tobias Hilka
      2. ObjectWithManager.vm
        72 kB
        Tobias Hilka

        Activity

        Thomas Fox made changes -
        Assignee Thomas Fischer [ tfischer ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 3.3-RC3 [ 12312398 ]
        Hide
        Thomas Fox added a comment -

        Applied patch, with the following changes

        • The additional methods only make sense with complexObjectModel set to true. Changed the patch accordingly.
        • reverted the changes in setting boolean values. The proposed changes are not java 1.3 compatible.
        • changed some javadoc
        Show
        Thomas Fox added a comment - Applied patch, with the following changes The additional methods only make sense with complexObjectModel set to true. Changed the patch accordingly. reverted the changes in setting boolean values. The proposed changes are not java 1.3 compatible. changed some javadoc
        Tobias Hilka made changes -
        Attachment ObjectWithManager.vm [ 12362514 ]
        Tobias Hilka made changes -
        Field Original Value New Value
        Attachment Object.vm [ 12362513 ]
        Tobias Hilka created issue -

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Tobias Hilka
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development