Hi,

Is there a way to add RelatedJoins to tables on the fly, when the tables
have already been created?

I have two objects, Optimizer and OptimizerTeam, that I want to link with a
RelatedJoin, without wiping out all the rows I currently have stored. I
tried running the following in the hopes of creating the table
OptimizerTeams_Optimizers, but it did not work. Any pointers?

Optimizer.sqlmeta.addJoin
(RelatedJoin('OptimizerTeam',joinMethodName='OptimizerTeams'))
OptimizerTeam.sqlmeta.addJoin(RelatedJoin('Optimizer',
joinMethodName='Optimizers'))

Thanks,
Molly
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to