db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TORQUE-299) In the getRelatedObject... methods in the Data objects, fill the reference to the current object
Date Tue, 27 Aug 2013 21:31:51 GMT

     [ https://issues.apache.org/jira/browse/TORQUE-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Fox resolved TORQUE-299.
-------------------------------

    Resolution: Fixed
    
> 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


Mime
View raw message