You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Thomas Fox (JIRA)" <ji...@apache.org> on 2013/08/22 22:09:52 UTC

[jira] [Created] (TORQUE-299) In the getRelatedObject... methods in the Data objects, fill the reference to the current object

Thomas Fox created TORQUE-299:
---------------------------------

             Summary: In the getRelatedObject... methods in the Data objects, fill the reference to the current object
                 Key: TORQUE-299
                 URL: https://issues.apache.org/jira/browse/TORQUE-299
             Project: Torque
          Issue Type: Sub-task
          Components: Templates
    Affects Versions: 4.0
            Reporter: Thomas Fox
            Assignee: Thomas Fox
             Fix For: 4.1


For the example where one has the tables

A - AToB - B

where AToB has foreign keys to A and B, methods are generated in the A data object:
getAToB(...)
getAToBJoin...(...)

Currently, the objects retrieved by these methods do not have the back reference to A filled.
i.e getAToB(...).get(0).getA() will hit the database querying the A object.
This is not necessary as we already have the referenced A object.
This object should be cached.

--
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