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:01:52 UTC
[jira] [Commented] (TORQUE-293) The generated OM classes of object
A contain a method getAtoBJoinA() where they should contain a method
getAtoBJoinB()
[ https://issues.apache.org/jira/browse/TORQUE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13747836#comment-13747836 ]
Thomas Fox commented on TORQUE-293:
-----------------------------------
In fact, Torque 3.3 generated a getAtoBJoinB(Criteria) and a getAtoBJoinA(Criteria) in A.
In my opinion, it makes sense to do the following:
- generate a getAtoBJoinB(Criteria) in A
- fill all AtoB object retrieved by getAtoB ... methods with references to the current A (thus removing the ned for the getAtoBJoinA method)
> The generated OM classes of object A contain a method getAtoBJoinA() where they should contain a method getAtoBJoinB()
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: TORQUE-293
> URL: https://issues.apache.org/jira/browse/TORQUE-293
> Project: Torque
> Issue Type: Bug
> Components: Templates
> Affects Versions: 4.0
> Reporter: Thomas Vandahl
> Assignee: Thomas Fox
>
> I use the getAJoinB() methods in the OM classes. I have the following table relation:
> A - AtoB - B
> Now in A there used to be a generated method getAtoBJoinB(Criteria) whereas in Torque4 there is only getAtoBJoinA(Criteria). This feature was very helpful when dealing with m:n relations. It allowed to access all Bs that belong to a certain A with one call. So to get all As that belong to a certain A is not very useful.
--
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