On Apr 23, 2006, at 12:23 PM, Brad Clements wrote:
primaryjoin = and_(sub_task.c.task = task.c.id, sub_task.c.system_id = task.c.system_id)
yeah thats the idea.
Or is there an easier way to do this in meta data, perhaps Table accepting some kind of Relationship object?
how is that easier ? just so you can define the join condition as part of the Table, and then....mappers are easier to create ? or did you want some way where you didnt have to specify the join condition at all ?
with this kind of thing I have chosen to go with "ok, slightly not default condition, so you have to just be explicit". i think a basic explicit interface is ultimately less hassle than something more automagic/switchy.
------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

