While I'm not a Torque expert, Torque certainly can/does provide that type of relationship management.
Questions, what DB are you using? Did you define foreign keys between your tables? One thing you can try is to verify or add foreign key references to yourdb-schema.xml file and generate the OM again. You should see the expected linkage methods in both Team and Players.
HTH,
David
Andy Kriger wrote:
I just downloaded Torque and started generating Java code to represent my
database. The database has a very hierarchical structure with relationships
between tables defined by foreign keys. I was hoping that when I generated
the code, Torque would pick up these relationships and model the aggregation
expressed by the FKs. However, looking at the code, I am not seeing this.
Example:
A Team has a name
A Team has a 1 to many relationship with Players
I would expect that BaseTeam.java would have a (get|set)Name method and a
(get|set)Players that returns a List. I only see the Name field being
handled, not the Players field.
In build.propertes, torque.complexObjectModel=true
If this is something Torque can do, can someone point me in the right
direction?
If not, does anyone have suggestions for how they've handled this situation?
thx
andy kriger
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
