Hi, I have the following concrete inheritance structure (simplified in fact...)
A <-- B <-- L1 A <-- C <-- L2 Where L1 and L2 have tables (T1, T2). using declarative, I could define classes A,B and C as AbstractConcreteBase, and therefore issue polymorphic queries including L1,L2 (and any other concrete leaf). Right? The problem here is how can I do the same using the Classical Mappings? The mapper requires a Table mapping for the root classes A,B,C. But they don't exist. In fact, I think this is the most common scenario for concrete inheritance, and a good solution to deal with legacy tables. I took a look in the source, but it is a little difficult to understand. Should I declare mappers for A,B and C? but if I don't declare, I will not be able to query... the AbstractConcreteBase implementation kind of intruduces some kind of later mapping I could not figure out. It just looks like the classical thing is going to be aborted. I feel sorry if this is the case, because declarative re-introduces the phanton of strong coupling between logical model and ORM framework. Thanks, it is my first post and I hope I can help in the future aswell. Alex -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.
