Issue Details (XML | Word | Printable)

Key: TORQUE-99
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Thomas Fischer
Reporter: Tobias Hilka
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Torque

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

Created: 25/Jul/07 11:12 AM   Updated: 24/Sep/07 08:11 PM
Return to search
Component/s: Generator
Affects Version/s: 3.3-RC2
Fix Version/s: 3.3-RC3

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works Object.vm 2007-07-25 11:13 AM Tobias Hilka 70 kB
Text File Licensed for inclusion in ASF works ObjectWithManager.vm 2007-07-25 11:13 AM Tobias Hilka 72 kB

Resolution Date: 24/Sep/07 08:11 PM


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

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tobias Hilka made changes - 25/Jul/07 11:13 AM
Field Original Value New Value
Attachment Object.vm [ 12362513 ]
Tobias Hilka made changes - 25/Jul/07 11:13 AM
Attachment ObjectWithManager.vm [ 12362514 ]
Repository Revision Date User Message
ASF #578941 Mon Sep 24 20:10:50 UTC 2007 tfischer added copy(...) and add<ForeignKey>(..) methods which take connection parameters.
Thanks to Tobias Hilka for the patch.
Resolves TORQUE-99.
Files Changed
MODIFY /db/torque/site/trunk/xdocs/changes.xml
MODIFY /db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm
MODIFY /db/torque/templates/trunk/src/templates/om/Object.vm

Thomas Fischer added a comment - 24/Sep/07 08:11 PM
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

Thomas Fischer made changes - 24/Sep/07 08:11 PM
Resolution Fixed [ 1 ]
Fix Version/s 3.3-RC3 [ 12312398 ]
Assignee Thomas Fischer [ tfischer ]
Status Open [ 1 ] Closed [ 6 ]