sure, just put a polymorphic_identity on your base Resource class and that's the class you'll get if that identity value is the one retrieved from the row.
However in your example above, the Resource you have where you stuck a "D" on it, you'd get a Resource_D back when querying. It's best not to manually set discriminators like that as you'll have inconsistent typing between the "to be flushed" set of objects and the "returned from a query" set.
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/FHmjireFL_EJ.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/i2RCGGlPyKsJ.