On Feb 13, 2009, at 2:09 PM, Stephen Hansen wrote:

>
>> The first step would be to configure the inheritance hiearchy of
>> Things, as I see you have an Asset table in there as well which I'm
>> assuming is a Thing subclass.   The joined table inheritance section
>> in the docs will explain that.  then you just set up relations using
>> the same techniques as any other relation() setup.
>
> Yikes, I goofed on making my post; there's no problem with the
> inheritance structure and its not really what I meant to ask about.
> That line which referenced an asset table was meant to reference the
> thing table.
>
> All the relations happen on the Thing level: there's no relations
> between any of the subclasses.
>
> Its all in a single table, just Thing-to-Thing, the mapping of which
> is confusing me.
>

so, youre going to say  relation(MyThingAssociation) on your Thing  
mapper and relation(Thing) on your MyThingAssociation mapper.   It  
would look like any other association mapping.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to