I found an example of how to do single table inheritance using Class mappings.
http://docs.sqlalchemy.org/en/latest/orm/inheritance.html#single-table-inheritance
But for the life of me, I cannot find an example of how to do this with classic mapper so that I can keep my classes and persistent mappings separate.
How do I convert this example into classic mapping? I am clear on creating the tables, just not sure how to actually structure the mapper.
In the example, there are the following types defined:
class Employee(Base):
class Manager(Employee):
class Engineer(Employee):
Assuming I have created the appropriate table:
employee = Table(...Column(type...))
How do I write code for the mapper so that both Manager and Engineer live in the same table (single table inheritance) discriminated by type ("manager", "engineer" or otherwise employee)?
Thanks.